summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/js/searx.js
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-03-23 14:01:33 +0100
committerAdam Tauber <asciimoo@gmail.com>2020-03-23 14:01:33 +0100
commit9a2f26d915ee05d933a18c31bca2121658aa7ffd (patch)
treefff6c66d06c66fc549d674cc191835efbb52673b /searx/static/themes/oscar/js/searx.js
parent65cae857354a5268253e40556153e994fa747e3d (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.js3
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();
+ });
}
});
;/**