aboutsummaryrefslogtreecommitdiff
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
parent571e3dea5e85c4ba54065acd8e6feb5fe1f9ec03 (diff)
hotfix autocomplete
-rw-r--r--public/javascripts/bundle.js7
-rw-r--r--public/javascripts/main.js3
2 files changed, 7 insertions, 3 deletions
diff --git a/public/javascripts/bundle.js b/public/javascripts/bundle.js
index 3fa0cc1..182249f 100644
--- a/public/javascripts/bundle.js
+++ b/public/javascripts/bundle.js
@@ -72665,10 +72665,8 @@ function updateWeekText () {
else currentWeekNode.innerHTML = `<strong>Week ${getWeek() + offset}</strong>`
}
-updateWeekText()
-
getUsers().then(function (users) {
- // console.log(users)
+ updateWeekText()
searchNode.addEventListener('keydown', function (e) {
if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
@@ -72747,6 +72745,9 @@ inputNode.addEventListener('click', function () {
inputNode.addEventListener('blur', function () {
inputNode.selectionStart = inputNode.selectionEnd = -1
+})
+
+searchNode.addEventListener('blur', function (e) {
autocompleteNode.innerHTML = ''
})
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 = ''
})