Show stickies at top of catalog

This commit is contained in:
8chan
2015-03-06 02:01:53 -08:00
committed by czaks
parent e8b530a783
commit dd27026618
2 changed files with 5 additions and 3 deletions

View File

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