From cd21694652383a49077e15439adf717f631cdd50 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 16 Feb 2014 11:27:05 -0600 Subject: 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 --- templates/public/index.html | 1 + 1 file changed, 1 insertion(+) (limited to 'templates') 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: '', items: 10, updater: function(item) { + $('#pkgsearch-field').val(item); $('#pkgsearch-form').submit(); return item; } -- cgit v1.2.3-24-g4f1b