summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-02-16 11:27:05 -0600
committerDan McGee <dan@archlinux.org>2014-02-16 11:27:05 -0600
commitcd21694652383a49077e15439adf717f631cdd50 (patch)
treef9a2c96a1eb6cb2e3b98852cb51cc3ad1d2e70d8
parentc47230a091b9084553ea7c54f9cddc92472e2191 (diff)
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>
-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 515ce582..ab836569 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;
}