Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
[enh] submit search on suggestion select - closes #807
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoo committed Mar 23, 2020
1 parent 65cae85 commit 9a2f26d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions searx/static/themes/oscar/js/searx.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ $(document).ready(function(){
},
source: searx.searchResults.ttAdapter()
});
$('#q').bind('typeahead:selected', function(ev, suggestion) {
$("#search_form").submit();
});
}
});
;/**
Expand Down
4 changes: 2 additions & 2 deletions searx/static/themes/oscar/js/searx.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions searx/static/themes/oscar/js/searx_src/autocompleter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ $(document).ready(function(){
},
source: searx.searchResults.ttAdapter()
});
$('#q').bind('typeahead:selected', function(ev, suggestion) {
$("#search_form").submit();
});
}
});

0 comments on commit 9a2f26d

Please sign in to comment.