forked from leftypol/leftypol
Show stickies at top of catalog
This commit is contained in:
parent
e8b530a783
commit
dd27026618
2 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue