aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-09-06 15:19:58 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-09-06 15:19:58 +0200
commit5261bbe0d422a62f9c97943fae4d4eccd53bc1a5 (patch)
treec8142610af830e05f8f190a9bc98bcae72c69a80 /public/javascripts/main.js
parent571e3dea5e85c4ba54065acd8e6feb5fe1f9ec03 (diff)
hotfix autocomplete
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index 49fc738..98a54bd 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -102,5 +102,8 @@ inputNode.addEventListener('click', function () {
inputNode.addEventListener('blur', function () {
inputNode.selectionStart = inputNode.selectionEnd = -1
+})
+
+searchNode.addEventListener('blur', function (e) {
autocompleteNode.innerHTML = ''
})