aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index d242ce2..29f1d3e 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -1,6 +1,11 @@
const frontpage = require('./frontpage')
-require('./search')
+const search = require('./search')
+const schedule = require('./schedule')
frontpage.show()
+search.events.on('search', function (selectedItem) {
+ schedule.viewItem(0, selectedItem)
+})
+
document.body.style.opacity = 1