From 31005f3121d1e1c4511ed8bcd151889a46d4ab28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 30 Nov 2017 22:33:54 +0100 Subject: [PATCH] use `change` function just like in case of language selection The previous version did not work in Chrome browser. Closes #1102 --- searx/static/plugins/js/search_on_category_select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/static/plugins/js/search_on_category_select.js b/searx/static/plugins/js/search_on_category_select.js index a76fd1266..1c42d9e9e 100644 --- a/searx/static/plugins/js/search_on_category_select.js +++ b/searx/static/plugins/js/search_on_category_select.js @@ -10,7 +10,7 @@ $(document).ready(function() { } return false; }); - $('#time-range > option').click(function(e) { + $('#time-range').change(function(e) { if($('#q').val()) { $('#search_form').submit(); }