forked from leftypol/leftypol
Commit the patch from issue 229
https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/229 - also remove unused var declaration
This commit is contained in:
parent
81a2b2f324
commit
f65a588760
1 changed files with 2 additions and 2 deletions
|
@ -8,13 +8,13 @@ if (active_page == 'catalog') $(function(){
|
||||||
|
|
||||||
$("#sort_by").change(function(){
|
$("#sort_by").change(function(){
|
||||||
var value = this.value;
|
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;
|
catalog.sort_by = value;
|
||||||
localStorage.catalog = JSON.stringify(catalog);
|
localStorage.catalog = JSON.stringify(catalog);
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#image_size").change(function(){
|
$("#image_size").change(function(){
|
||||||
var value = this.value, old;
|
var value = this.value;
|
||||||
$(".grid-li").removeClass("grid-size-vsmall");
|
$(".grid-li").removeClass("grid-size-vsmall");
|
||||||
$(".grid-li").removeClass("grid-size-small");
|
$(".grid-li").removeClass("grid-size-small");
|
||||||
$(".grid-li").removeClass("grid-size-large");
|
$(".grid-li").removeClass("grid-size-large");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue