diff options
| author | 8chan <admin@8chan.co> | 2015-03-06 02:01:53 -0800 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 12:01:16 +0200 |
| commit | dd27026618ab200253ab6fcd6e58e247f8cc6711 (patch) | |
| tree | 141dd07022896a649fbba186ca3f9587e899754d /js | |
| parent | e8b530a78369fffff024f1d26696605c3f1130c2 (diff) | |
Show stickies at top of catalog
Diffstat (limited to 'js')
| -rw-r--r-- | js/catalog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/catalog.js b/js/catalog.js index 38382096..18da6d6b 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -28,7 +28,7 @@ if (active_page == 'catalog') $(function(){ $("#sort_by").change(function(){
var value = this.value;
- $('#Grid').mixItUp('sort', value);
+ $('#Grid').mixItUp('sort', (value == "random" ? value : "sticky:desc " + value));
catalog.sort_by = value;
localStorage.catalog = JSON.stringify(catalog);
});
@@ -46,7 +46,7 @@ if (active_page == 'catalog') $(function(){ $('#Grid').mixItUp({
animation: {
enable: false
- },
+ }
});
if (catalog.sort_by !== undefined) {
|
