From 0d68494de76b76861c47df9c56a66d5f07e6c08d Mon Sep 17 00:00:00 2001 From: Joris Steyn Date: Thu, 2 Jan 2014 00:41:34 +0100 Subject: Go to package when selecting a typeahead suggestion Directly jump to the package details when selecting an entry from the drop-down list. Implements FS#34471. Signed-off-by: Lukas Fleischer --- web/html/home.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/html/home.php b/web/html/home.php index ddbb0fd..e80efaa 100644 --- a/web/html/home.php +++ b/web/html/home.php @@ -118,7 +118,11 @@ $(document).ready(function() { matcher: function(item) { return true; }, sorter: function(items) { return items; }, menu: '', - items: 20 + items: 20, + updater: function(item) { + document.location = '/packages/' + item; + return item; + } }).attr('autocomplete', 'off'); }); -- cgit v1.2.3-54-g00ecf