1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 07:50:23 +01:00
vichan/js/catalog.js
2014-09-20 06:40:43 +02:00

20 lines
465 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({
});
});