summaryrefslogtreecommitdiff
path: root/searx/static/js
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-05-27 22:43:49 +0200
committerAdam Tauber <asciimoo@gmail.com>2015-05-27 22:43:49 +0200
commitf79f6713b0ce825d3b3faf93a61581bba74163b7 (patch)
tree459c668e3a45b781caf558b972a59acf3d8dfd9f /searx/static/js
parent021c8b254406610e353777acd91a6296ac49f45d (diff)
downloadsearxng-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.js2
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);