diff --git a/app/views/schedules/events.html.haml b/app/views/schedules/events.html.haml index 24092ec2..8680d3c3 100644 --- a/app/views/schedules/events.html.haml +++ b/app/views/schedules/events.html.haml @@ -61,5 +61,8 @@ // Go to current date and time $(document).ready(function(){ - document.getElementById("#{ @tag }").scrollIntoView(); + tag = "#{ @tag }"; + if(tag !== ""){ + document.getElementById(tag).scrollIntoView(); + } });