diff options
author | BuildTools <Noah Loomans> | 2017-01-08 18:18:08 +0100 |
---|---|---|
committer | BuildTools <Noah Loomans> | 2017-01-08 18:18:08 +0100 |
commit | 55409fc3c92f150fa702065e65c8c322eb0bd1be (patch) | |
tree | 6f44ec1406290ee5bf657d0775a681668ab8097a /public/javascripts/search.js | |
parent | 742193606e8ea2a790f8c35da070a8eeee20f6c7 (diff) | |
parent | a544597ff38b7468f2bff2d248ba0dfde4d05f92 (diff) |
Merge branch 'beta'
Diffstat (limited to 'public/javascripts/search.js')
-rw-r--r-- | public/javascripts/search.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/javascripts/search.js b/public/javascripts/search.js index 3f223ec..a07d6dd 100644 --- a/public/javascripts/search.js +++ b/public/javascripts/search.js @@ -13,13 +13,14 @@ self._nodes = { } self.submit = function () { - self._nodes.input.blur() - document.body.classList.remove('week-selector-not-visible') // Safari bug - const selectedItem = autocomplete.getSelectedItem() + if (selectedItem == null) return console.log(selectedItem) + self._nodes.input.blur() + document.body.classList.remove('week-selector-not-visible') // Safari bug + self.emit('search', selectedItem) } |