[enh] submit search on suggestion select - closes #807

This commit is contained in:
Adam Tauber 2020-03-23 14:01:33 +01:00
parent 65cae85735
commit 9a2f26d915
3 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,9 @@ $(document).ready(function(){
}, },
source: searx.searchResults.ttAdapter() source: searx.searchResults.ttAdapter()
}); });
$('#q').bind('typeahead:selected', function(ev, suggestion) {
$("#search_form").submit();
});
} }
}); });
;/** ;/**

Binary file not shown.

View File

@ -33,5 +33,8 @@ $(document).ready(function(){
}, },
source: searx.searchResults.ttAdapter() source: searx.searchResults.ttAdapter()
}); });
$('#q').bind('typeahead:selected', function(ev, suggestion) {
$("#search_form").submit();
});
} }
}); });