From 98e9b9969a24ebe6dbfffe70eba5c415852efb8c Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 31 Jul 2024 16:40:16 -0700 Subject: [PATCH] oops, fix one more JS variable --- app/assets/javascripts/osem-schedule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');