summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2015-01-23 02:24:04 -0800
committerczaks <marcin@6irc.net>2016-05-05 11:59:59 +0200
commit01207dfcbb1750441a274538591a1a861698dda2 (patch)
tree1e1c9c3f7b7d5df8b21a00267f84ae33a09b6454
parentb056124e499082328f932a34997fc90ca3538233 (diff)
Catalog script fix for hiding threads with short IDs
-rw-r--r--js/catalog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/catalog.js b/js/catalog.js
index 5a236b8b..801c86bc 100644
--- a/js/catalog.js
+++ b/js/catalog.js
@@ -10,9 +10,9 @@ if (active_page == 'catalog') $(function(){
if (localStorage.hiddenthreads) {
var hidden_data = JSON.parse(localStorage.hiddenthreads);
- if (hidden_data[board_name]) {
+ if (hidden_data[board_name] && !$.isEmptyObject(hidden_data[board_name])) {
$.each(hidden_data[board_name], function(k, v) {
- $('a[href*="'+k+'"]').parents('.mix').remove();
+ $('a[href$="/'+k+'.html"]').parents('.mix').remove();
});
}
}