diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-05-27 22:43:49 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-05-27 22:43:49 +0200 |
commit | f79f6713b0ce825d3b3faf93a61581bba74163b7 (patch) | |
tree | 459c668e3a45b781caf558b972a59acf3d8dfd9f /searx/static/js | |
parent | 021c8b254406610e353777acd91a6296ac49f45d (diff) | |
download | searxng-f79f6713b0ce825d3b3faf93a61581bba74163b7.tar.gz searxng-f79f6713b0ce825d3b3faf93a61581bba74163b7.zip |
[fix] do not use category select js if there is no search query field on the page
Diffstat (limited to 'searx/static/js')
-rw-r--r-- | searx/static/js/search_on_category_select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/static/js/search_on_category_select.js b/searx/static/js/search_on_category_select.js index 6156ca4e8..990211690 100644 --- a/searx/static/js/search_on_category_select.js +++ b/searx/static/js/search_on_category_select.js @@ -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); |