forked from leftypol/leftypol
add a very small image size for catalog
This commit is contained in:
parent
56e55d157a
commit
ac888a769d
3 changed files with 14 additions and 6 deletions
|
@ -7,12 +7,9 @@ if (active_page == 'catalog') $(function(){
|
|||
|
||||
$("#image_size").change(function(){
|
||||
var value = this.value, old;
|
||||
if (value == "small") {
|
||||
old = "large";
|
||||
} else {
|
||||
old = "small";
|
||||
}
|
||||
$(".grid-li").removeClass("grid-size-"+old);
|
||||
$(".grid-li").removeClass("grid-size-vsmall");
|
||||
$(".grid-li").removeClass("grid-size-small");
|
||||
$(".grid-li").removeClass("grid-size-large");
|
||||
$(".grid-li").addClass("grid-size-"+value);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue