lainchan/js/catalog.js
Matěj Grabovský 37c5e4f860 Make catalog look OK even with JS disabled
For some reason, threads in the catalog were laid out by a jQuery plug-in. This is
now removed and the layout is created purely by handcrafted CSS code.
2015-03-27 22:37:42 +01:00

17 lines
434 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);
});
});