From a11230819ff76312b4528b2bfb6e03d0560075b1 Mon Sep 17 00:00:00 2001 From: marc Date: Tue, 20 Sep 2016 15:19:02 -0500 Subject: automatic search when language is selected --- 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 19aeef944..a76fd1266 100644 --- a/searx/static/plugins/js/search_on_category_select.js +++ b/searx/static/plugins/js/search_on_category_select.js @@ -15,5 +15,10 @@ $(document).ready(function() { $('#search_form').submit(); } }); + $('#language').change(function(e) { + if($('#q').val()) { + $('#search_form').submit(); + } + }); } }); -- cgit v1.2.3-54-g00ecf