diff --git a/app/assets/javascripts/osem-schedule.js b/app/assets/javascripts/osem-schedule.js index f79dfa2a0..b38ae2cc8 100644 --- a/app/assets/javascripts/osem-schedule.js +++ b/app/assets/javascripts/osem-schedule.js @@ -98,7 +98,7 @@ $(document).ready( function() { } }); - if (closestEventId) { + if (closestEvent) { // Instead of relying on hash it's probably better to scroll using javascript // Since the users and click button->scroll->click again, which won't re-scroll $('.highlighted').removeClass('highlighted');