Merge pull request #1233 from Ana06/error_schedule
Avoid a Javascript error when @tag is null
This commit is contained in:
commit
c552d08b8e
1 changed files with 4 additions and 1 deletions
|
|
@ -61,5 +61,8 @@
|
||||||
|
|
||||||
// Go to current date and time
|
// Go to current date and time
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
document.getElementById("#{ @tag }").scrollIntoView();
|
tag = "#{ @tag }";
|
||||||
|
if(tag !== ""){
|
||||||
|
document.getElementById(tag).scrollIntoView();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue