Skip to content

Commit 870a003

Browse files
committed
- re-label reverse button
1 parent 6c133a4 commit 870a003

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424

2525
<p style="text-align:right">
26-
<a id="reverse-filter">&#8644; newest/oldest first</a> |
26+
<a id="reverse-filter">&#8644; reverse</a> |
2727
<a id="hide-all">hide all</a> |
2828
<a id="show-all">show all</a>
2929
</p>

js/categoryFilter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)