summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-02-16 18:27:05 +0100
committerDan McGee <dan@archlinux.org>2014-02-16 18:27:05 +0100
commitcd21694652383a49077e15439adf717f631cdd50 (patch)
treef9a2c96a1eb6cb2e3b98852cb51cc3ad1d2e70d8 /templates
parentc47230a091b9084553ea7c54f9cddc92472e2191 (diff)
downloadarchweb-cd21694652383a49077e15439adf717f631cdd50.tar.gz
archweb-cd21694652383a49077e15439adf717f631cdd50.tar.xz
Ensure correct value gets submitted on package search typeahead
Populate the form field with the chosen item before submitting the form. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/public/index.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/public/index.html b/templates/public/index.html
index 515ce58..ab83656 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -226,6 +226,7 @@ function setupTypeahead() {
menu: '<ul class="pkgsearch-typeahead"></ul>',
items: 10,
updater: function(item) {
+ $('#pkgsearch-field').val(item);
$('#pkgsearch-form').submit();
return item;
}