summaryrefslogtreecommitdiffstats
path: root/web/html/home.php
diff options
context:
space:
mode:
authorJoris Steyn <jorissteyn@gmail.com>2014-01-02 00:41:34 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-01-02 00:48:20 +0100
commit0d68494de76b76861c47df9c56a66d5f07e6c08d (patch)
tree571b95389a22dd1f4ba184d83bae10a8c61a2087 /web/html/home.php
parentdbf1d474f7eba3dd0911aa47626e58ccf8057a52 (diff)
downloadaur-0d68494de76b76861c47df9c56a66d5f07e6c08d.tar.gz
aur-0d68494de76b76861c47df9c56a66d5f07e6c08d.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/home.php')
-rw-r--r--web/html/home.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/html/home.php b/web/html/home.php
index ddbb0fd6..e80efaa6 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: '<ul class="pkgsearch-typeahead"></ul>',
- items: 20
+ items: 20,
+ updater: function(item) {
+ document.location = '/packages/' + item;
+ return item;
+ }
}).attr('autocomplete', 'off');
});
</script>