lainchan/js/catalog.js

23 lines
447 B
JavaScript
Raw Normal View History

if (active_page == 'catalog') $(function(){
2014-08-08 16:48:38 -04:00
$("#sort_by").change(function(){
var value = this.value;
$("#sort-"+value).trigger("click");
});
2014-08-08 16:48:38 -04:00
$("#image_size").change(function(){
var value = this.value, old;
if (value == "small") {
old = "large";
} else {
old = "small";
}
$(".grid-li").removeClass("grid-size-"+old);
2014-08-08 16:48:38 -04:00
$(".grid-li").addClass("grid-size-"+value);
});
$('#Grid').mixitup({
});
});