mirror of https://github.com/searxng/searxng.git
[fix] do not submit form if there is no search query - fixes #341
This commit is contained in:
parent
f79f6713b0
commit
e19eeeefa0
|
@ -7,7 +7,9 @@ $(document).ready(function() {
|
|||
$('#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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue