lainchan/js/catalog.js

20 lines
465 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;
$(".grid-li").removeClass("grid-size-vsmall");
$(".grid-li").removeClass("grid-size-small");
$(".grid-li").removeClass("grid-size-large");
2014-08-08 16:48:38 -04:00
$(".grid-li").addClass("grid-size-"+value);
});
$('#Grid').mixitup({
});
});