summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2015-01-05 04:39:08 -0800
committerczaks <marcin@6irc.net>2016-05-05 11:59:16 +0200
commitb056124e499082328f932a34997fc90ca3538233 (patch)
treeb51614d4a6bd008c43391c570109359f2398dad5 /js
parent4f96263e3b72124df7b152e5dd2b513683fda818 (diff)
Catalog: don't show hidden threads
Diffstat (limited to 'js')
-rw-r--r--js/catalog.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/catalog.js b/js/catalog.js
index 386557d9..5a236b8b 100644
--- a/js/catalog.js
+++ b/js/catalog.js
@@ -7,6 +7,16 @@ 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]) {
+ $.each(hidden_data[board_name], function(k, v) {
+ $('a[href*="'+k+'"]').parents('.mix').remove();
+ });
+ }
+ }
+
$("#sort_by").change(function(){
var value = this.value;
$('#Grid').mixItUp('sort', value);