diff options
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r-- | public/javascripts/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js index bd28475..6e0796c 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -8,12 +8,12 @@ const state = {} frontpage.show() weekSelector.updateCurrentWeek() -search.events.on('search', function (selectedItem) { +search.on('search', function (selectedItem) { state.selectedItem = selectedItem schedule.viewItem(weekSelector.getSelectedWeek(), state.selectedItem) }) -weekSelector.events.on('weekChanged', function (newWeek) { +weekSelector.on('weekChanged', function (newWeek) { schedule.viewItem(newWeek, state.selectedItem) }) |