[mod] move plugin static files to static/plugins

This commit is contained in:
Adam Tauber 2016-02-10 18:06:11 +01:00
parent ab6a7601cb
commit 4e5af8d87b
2 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,16 @@
$(document).ready(function() {
if($('#q').length) {
$('#categories label').click(function(e) {
$('#categories input[type="checkbox"]').each(function(i, checkbox) {
$(checkbox).prop('checked', false);
});
$('#categories label').removeClass('btn-primary').removeClass('active').addClass('btn-default');
$(this).removeClass('btn-default').addClass('btn-primary').addClass('active');
$($(this).children()[0]).prop('checked', 'checked');
if($('#q').val()) {
$('#search_form').submit();
}
return false;
});
}
});