Browse Source

Generalize ignoring sticky threads on overboard catalogs

pull/40/head
discomrade 3 years ago
parent
commit
531ca787e4
  1. 2
      js/catalog.js
  2. 3
      templates/themes/catalog/catalog.html
  3. 1
      templates/themes/catalog/theme.php

2
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);
});

3
templates/themes/catalog/catalog.html

@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<script type='text/javascript'>
var active_page = "catalog"
, board_name = "{{ board.uri }}";
, board_name = "{{ board.uri }}"
, is_overboard = "{{ is_overboard }}";
</script>
<title>{{ settings.title }} ( /{{ board.title|e }}/ )</title>
{% include 'header.html' %}

1
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,
);

Loading…
Cancel
Save