Catalog: don't show hidden threads

This commit is contained in:
8chan
2016-05-05 11:59:16 +02:00
committed by czaks
parent 4f96263e3b
commit b056124e49
+10
View File
@@ -7,6 +7,16 @@ if (active_page == 'catalog') $(function(){
localStorage.catalog = JSON.stringify(catalog); 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(){ $("#sort_by").change(function(){
var value = this.value; var value = this.value;
$('#Grid').mixItUp('sort', value); $('#Grid').mixItUp('sort', value);