File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2323 </ div >
2424
2525 < p style ="text-align:right ">
26- < a id ="reverse-filter "> ⇄ newest/oldest first </ a > |
26+ < a id ="reverse-filter "> ⇄ reverse </ a > |
2727 < a id ="hide-all "> hide all</ a > |
2828 < a id ="show-all "> show all</ a >
2929 </ p >
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ function categoryFilter(show_on_start) {
66 var post_list = document . getElementById ( 'post-list' ) ;
77 var posts = post_list . querySelectorAll ( '.post' ) ;
88 var categories_selected = [ ] ;
9+ var reverse_button = document . getElementById ( 'reverse-filter' ) ;
910
1011 // highlighing & selection logic:
1112
@@ -126,7 +127,7 @@ function categoryFilter(show_on_start) {
126127 } ) ;
127128 }
128129
129- document . getElementById ( 'reverse-filter' ) . addEventListener ( 'click' , function ( ) {
130+ reverse_button . addEventListener ( 'click' , function ( ) {
130131 reversePosts ( ) ;
131132 } ) ;
132133
You can’t perform that action at this time.
0 commit comments