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:
parent
5efd0e9b18
commit
1ab47143b6
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user