Generalize ignoring sticky threads on overboard catalogs

This commit is contained in:
discomrade 2021-10-02 04:59:12 +00:00
parent 8acc328c91
commit b518cc94c3
3 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ if (active_page == 'catalog') $(function(){
$("#sort_by").change(function(){
var value = this.value;
$('#Grid').mixItUp('sort', (((value == "random") || (board_name == "overboard")) ? value : "sticky:desc " + value));
$('#Grid').mixItUp('sort', (((value == "random") || is_overboard) ? value : "sticky:desc " + value));
catalog.sort_by = value;
localStorage.catalog = JSON.stringify(catalog);
});