Browse Source

Merge pull request #238 from towards-a-new-leftypol/issue_229

Commit the patch from issue 229
pull/40/head
towards-a-new-leftypol 3 years ago
committed by GitHub
parent
commit
bc5cd46c61
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      js/catalog.js

4
js/catalog.js

@ -8,13 +8,13 @@ if (active_page == 'catalog') $(function(){
$("#sort_by").change(function(){
var value = this.value;
$('#Grid').mixItUp('sort', (value == "random" ? value : "sticky:desc " + value));
$('#Grid').mixItUp('sort', (((value == "random") || (board_name == "overboard")) ? value : "sticky:desc " + value));
catalog.sort_by = value;
localStorage.catalog = JSON.stringify(catalog);
});
$("#image_size").change(function(){
var value = this.value, old;
var value = this.value;
$(".grid-li").removeClass("grid-size-vsmall");
$(".grid-li").removeClass("grid-size-small");
$(".grid-li").removeClass("grid-size-large");

Loading…
Cancel
Save