aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/search.js
diff options
context:
space:
mode:
authorBuildTools <Noah Loomans>2016-12-08 22:45:52 +0100
committerBuildTools <Noah Loomans>2016-12-08 22:45:52 +0100
commit1260c2788c56f8add0cad9ba758573e25b18b378 (patch)
treefca4bfe29901eb66f561084c23aab61d0b5d194a /public/javascripts/search.js
parent5c7fed6eda250d91d4babd14da73166425fab85b (diff)
hide autocomplete on submit
Diffstat (limited to 'public/javascripts/search.js')
-rw-r--r--public/javascripts/search.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/javascripts/search.js b/public/javascripts/search.js
index 673afea..d98c4fb 100644
--- a/public/javascripts/search.js
+++ b/public/javascripts/search.js
@@ -17,6 +17,8 @@ self.submit = function () {
const selectedItem = autocomplete.getSelectedItem()
console.log(selectedItem)
iframe.viewItem(0, selectedItem)
+
+ autocomplete.hide()
}
self._handleSubmit = function (event) {