mirror of
https://github.com/searxng/searxng.git
synced 2024-11-20 09:51:00 +00:00
[fix] do not use category select js if there is no search query field on the page
This commit is contained in:
parent
021c8b2544
commit
f79f6713b0
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
$(document).ready(function() {
|
||||
if($('#q')) {
|
||||
if($('#q').length) {
|
||||
$('#categories label').click(function(e) {
|
||||
$('#categories input[type="checkbox"]').each(function(i, checkbox) {
|
||||
$(checkbox).prop('checked', false);
|
||||
|
|
Loading…
Reference in a new issue