1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 10:25:55 +01:00
vichan/js/catalog.js

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