From 90e74fbb288b2f1df0516d877d3bd239c7800412 Mon Sep 17 00:00:00 2001 From: Noemi Vanyi Date: Mon, 25 Jul 2016 23:40:31 +0200 Subject: search on filter select --- searx/static/plugins/js/search_on_category_select.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'searx/static/plugins') diff --git a/searx/static/plugins/js/search_on_category_select.js b/searx/static/plugins/js/search_on_category_select.js index a6dd447a0..19aeef944 100644 --- a/searx/static/plugins/js/search_on_category_select.js +++ b/searx/static/plugins/js/search_on_category_select.js @@ -10,5 +10,10 @@ $(document).ready(function() { } return false; }); + $('#time-range > option').click(function(e) { + if($('#q').val()) { + $('#search_form').submit(); + } + }); } }); -- cgit v1.2.3-54-g00ecf