diff options
author | marc <a01200356@itesm.mx> | 2016-09-20 15:19:02 -0500 |
---|---|---|
committer | marc <a01200356@itesm.mx> | 2016-12-13 19:32:00 -0600 |
commit | a11230819ff76312b4528b2bfb6e03d0560075b1 (patch) | |
tree | 4886937b2b0ff4d2af942849961c80e46d5aff44 /searx/static/plugins | |
parent | c677aee58a4eca1015262eb24530620a333ddcef (diff) | |
download | searxng-a11230819ff76312b4528b2bfb6e03d0560075b1.tar.gz searxng-a11230819ff76312b4528b2bfb6e03d0560075b1.zip |
automatic search when language is selected
Diffstat (limited to 'searx/static/plugins')
-rw-r--r-- | searx/static/plugins/js/search_on_category_select.js | 5 |
1 files changed, 5 insertions, 0 deletions
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(); + } + }); } }); |