aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
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 = ''
})