mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
23 lines
447 B
JavaScript
23 lines
447 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;
|
|
if (value == "small") {
|
|
old = "large";
|
|
} else {
|
|
old = "small";
|
|
}
|
|
$(".grid-li").removeClass("grid-size-"+old);
|
|
$(".grid-li").addClass("grid-size-"+value);
|
|
});
|
|
|
|
$('#Grid').mixitup({
|
|
});
|
|
|
|
});
|