Merge pull request #1233 from Ana06/error_schedule

Avoid a Javascript error when @tag is null
This commit is contained in:
Christian Bruckmayer 2016-12-21 17:34:22 +01:00 committed by GitHub
commit c552d08b8e

View file

@ -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();
}
});