1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-26 08:20:58 +01:00
vichan/js/catalog.js

23 lines
447 B
JavaScript
Raw Normal View History

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