Catalog: don't show hidden threads

This commit is contained in:
8chan 2015-01-05 04:39:08 -08:00 committed by czaks
parent 4f96263e3b
commit b056124e49

View File

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