From 513c8f7b68ba17bbd3356af4301d8e5f3342187e Mon Sep 17 00:00:00 2001 From: marktaiwan Date: Fri, 6 Mar 2015 16:15:49 +0800 Subject: 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. --- js/catalog.js | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'js/catalog.js') 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)); -- cgit v1.3