diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-03-23 14:01:33 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2020-03-23 14:01:33 +0100 |
| commit | 9a2f26d915ee05d933a18c31bca2121658aa7ffd (patch) | |
| tree | fff6c66d06c66fc549d674cc191835efbb52673b /searx/static/themes/oscar/js/searx.js | |
| parent | 65cae857354a5268253e40556153e994fa747e3d (diff) | |
[enh] submit search on suggestion select - closes #807
Diffstat (limited to 'searx/static/themes/oscar/js/searx.js')
| -rw-r--r-- | searx/static/themes/oscar/js/searx.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/js/searx.js b/searx/static/themes/oscar/js/searx.js index 927aeb422..9138576f5 100644 --- a/searx/static/themes/oscar/js/searx.js +++ b/searx/static/themes/oscar/js/searx.js @@ -86,6 +86,9 @@ $(document).ready(function(){ }, source: searx.searchResults.ttAdapter() }); + $('#q').bind('typeahead:selected', function(ev, suggestion) { + $("#search_form").submit(); + }); } }); ;/** |