diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-12-01 12:06:22 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-12-01 12:06:22 +0100 |
commit | f18692872cdc28d29917247ef4f8ef7553a8b023 (patch) | |
tree | d67743f5f60a06f8f045e1a8ea552d8a2ee7850c /src | |
parent | 71aea288b5e54cc68793b6b133b4efb55812699d (diff) | |
parent | 3d498f38d1f4bbb6f539cf2edc8c272621af5127 (diff) |
Merge branch 'master' into beta
Diffstat (limited to 'src')
-rw-r--r-- | src/client/javascript/schedule.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/javascript/schedule.js b/src/client/javascript/schedule.js index 38ad66d..11a2aa8 100644 --- a/src/client/javascript/schedule.js +++ b/src/client/javascript/schedule.js @@ -56,23 +56,20 @@ self._removeChilds = function () { self.viewItem = function (week, selectedUser) { if (selectedUser == null) { self._removeChilds() - search.updateDom(selectedUser) } else if (VALID_WEEK_NUMBERS.indexOf(week) === -1) { self._handleError({ target: { status: 404 } }); - return } else { const url = self._getURLOfUser(week, selectedUser) self._removeChilds() - const request = new window.XMLHttpRequest() request.addEventListener('load', self._handleLoad) request.addEventListener('error', self._handleError) request.open('GET', url, true) request.send() - - search.updateDom(selectedUser) } + + search.updateDom(selectedUser) } module.exports = self |