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.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index 9214d05..de29a5d 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -16,6 +16,8 @@ if (favorite.get() != null) {
state.selectedItem = favorite.get()
favorite.update(state.selectedItem)
schedule.viewItem(weekSelector.getSelectedWeek(), state.selectedItem)
+} else {
+ search.focus()
}
search.on('search', function (selectedItem) {