logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: f79f6713b0ce825d3b3faf93a61581bba74163b7
parent: 021c8b254406610e353777acd91a6296ac49f45d
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Wed, 27 May 2015 22:43:49 +0200

[fix] do not use category select js if there is no search query field on the page

Diffstat:

searx/static/js/search_on_category_select.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);