lainchan/js/catalog.js
Matěj Grabovský 3e53a9e4e6 Bring mixitup.js back
Turns out it's essential for sorting
2015-03-31 08:14:55 +02:00

18 lines
460 B
JavaScript

if (active_page == 'catalog') $(function(){
$("#sort_by").change(function(){
var value = this.value;
$("#sort-"+value).trigger("click");
});
$("#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");
$(".grid-li").addClass("grid-size-"+value);
});
$('#Grid').mixitup({});
});