diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-09-19 20:26:47 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-09-19 20:26:47 +0200 |
commit | 6886af7bce072890be4ba7e2f00a1e73cdbf8473 (patch) | |
tree | 6c0f943105908fe3f729ead7db8f8aa1e6b281cd /public/javascripts/main.js | |
parent | 4feb61a436ff9e51a6688c3a77e925f4dda4bf25 (diff) |
fixed week selector not working
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r-- | public/javascripts/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js index b20ce6b..18ec962 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -114,10 +114,11 @@ searchNode.addEventListener('submit', submitForm) function submitForm (e) { if (e) e.preventDefault() - if (results !== null) { + if (results != null) { const indexInResult = selectedResult === -1 ? 0 : selectedResult selectedUser = users[results[indexInResult].index] } + if (selectedUser == null) return updateFavNode() |