1
0
Fork 0
mirror of https://github.com/searxng/searxng.git synced 2024-12-28 12:10:29 +00:00

follow up changes in search_category_on_select

This commit is contained in:
Noemi Vanyi 2016-07-17 19:03:42 +02:00
parent 2e8ab34d76
commit 074521fd8a

View file

@ -4,9 +4,7 @@ $(document).ready(function() {
$('#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');
$(document.getElementById($(this).attr("for"))).prop('checked', true);
if($('#q').val()) {
$('#search_form').submit();
}