aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/schedule.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/schedule.js')
-rw-r--r--public/javascripts/schedule.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/schedule.js b/public/javascripts/schedule.js
index 73e2a54..bf87af5 100644
--- a/public/javascripts/schedule.js
+++ b/public/javascripts/schedule.js
@@ -57,6 +57,8 @@ self._removeChilds = function () {
}
self.viewItem = function (week, selectedUser) {
+ search.updateDom(selectedUser)
+
if (VALID_WEEK_NUMBERS.indexOf(week) === -1) {
self._handleError({ target: { status: 404 } });
return
@@ -70,8 +72,6 @@ self.viewItem = function (week, selectedUser) {
request.addEventListener('error', self._handleError)
request.open('GET', url, true)
request.send()
-
- search.updateDom(selectedUser)
}
module.exports = self