diff --git a/js/catalog.js b/js/catalog.js index bf781c10..c620918c 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -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); }); diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index 7fa7146f..00cc21e2 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -6,7 +6,8 @@ {{ settings.title }} ( /{{ board.title|e }}/ ) {% include 'header.html' %} diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 76b4641e..0207a0da 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -488,6 +488,7 @@ 'recent_posts' => $recent_posts, 'stats' => array(), 'board' => $board, + 'is_overboard' => $is_overboard, 'link' => $board_link, 'no_post_form' => false, );