aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts')
-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 = ''
})