2014-05-05 17:23:49 +02:00
|
|
|
if (active_page == 'catalog') $(function(){
|
2014-03-17 03:21:01 +01:00
|
|
|
|
2014-08-08 22:48:38 +02:00
|
|
|
$("#sort_by").change(function(){
|
|
|
|
var value = this.value;
|
|
|
|
$("#sort-"+value).trigger("click");
|
2014-03-17 03:21:01 +01:00
|
|
|
});
|
|
|
|
|
2014-08-08 22:48:38 +02:00
|
|
|
$("#image_size").change(function(){
|
|
|
|
var value = this.value, old;
|
|
|
|
if (value == "small") {
|
2014-03-17 03:21:01 +01:00
|
|
|
old = "large";
|
|
|
|
} else {
|
|
|
|
old = "small";
|
|
|
|
}
|
|
|
|
$(".grid-li").removeClass("grid-size-"+old);
|
2014-08-08 22:48:38 +02:00
|
|
|
$(".grid-li").addClass("grid-size-"+value);
|
2014-03-17 03:21:01 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#Grid').mixitup({
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|