1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

Catalog script fix for hiding threads with short IDs

This commit is contained in:
8chan 2015-01-23 02:24:04 -08:00
parent 5efd0e9b18
commit 1ab47143b6

View File

@ -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();
});
}
}