summaryrefslogtreecommitdiff
path: root/js/catalog.js
diff options
context:
space:
mode:
authormarktaiwan <mark.taiwan@gmail.com>2015-03-06 16:15:49 +0800
committerczaks <marcin@6irc.net>2016-05-05 12:32:27 +0200
commit513c8f7b68ba17bbd3356af4301d8e5f3342187e (patch)
treefbcdeb781a47e4f8c97c70a40c834da2fb4e3e20 /js/catalog.js
parentdc725641c35184e7d1854900f9adb71d0c543ee5 (diff)
post-filter.js catalog support
Removes hidden threads from catalog page Shift click on catalog to hide thread Improved word matching for simple comment and subject filter.
Diffstat (limited to 'js/catalog.js')
-rw-r--r--js/catalog.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/js/catalog.js b/js/catalog.js
index 18da6d6b..065fba7b 100644
--- a/js/catalog.js
+++ b/js/catalog.js
@@ -6,26 +6,6 @@ if (active_page == 'catalog') $(function(){
localStorage.catalog = JSON.stringify(catalog);
}
- if (localStorage.hiddenthreads) {
- var hidden_data = JSON.parse(localStorage.hiddenthreads);
-
- if (hidden_data[board_name] && !$.isEmptyObject(hidden_data[board_name])) {
- $.each(hidden_data[board_name], function(k, v) {
- $('a[href$="/'+k+'.html"]').parents('.mix').remove();
- });
- }
- } else {
- hidden_data = {};
- }
-
- $(document).on('click', '.mix', function(e) {
- if (e.shiftKey) {
- hidden_data[board_name][$(this).data('id')] = Math.round(Date.now() / 1000);
- $(this).remove();
- localStorage.hiddenthreads = JSON.stringify(hidden_data);
- }
- });
-
$("#sort_by").change(function(){
var value = this.value;
$('#Grid').mixItUp('sort', (value == "random" ? value : "sticky:desc " + value));