Skip to content

Commit

Permalink
MDL-15318 - url is a reserved word in JavaScript in IE, so the Gen Ca…
Browse files Browse the repository at this point in the history
…lendar URL button does not work there
  • Loading branch information
tjhunt committed Jun 19, 2008
1 parent 8b2f825 commit fa20043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calendar/export_basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
preset_time = "recentupcoming";
}

url = "<?php echo $CFG->wwwroot; ?>/calendar/export_execute.php?preset_what=" + preset_what + "&amp;preset_time=" + preset_time + "&amp;username=<?php echo $usernameencoded; ?>&amp;authtoken=<?php echo $authtoken; ?>";
document.getElementById("url").innerText = url;
document.getElementById("url").innerHTML = url; //Need this as well, for Firefox
urlstr = "<?php echo $CFG->wwwroot; ?>/calendar/export_execute.php?preset_what=" + preset_what + "&amp;preset_time=" + preset_time + "&amp;username=<?php echo $usernameencoded; ?>&amp;authtoken=<?php echo $authtoken; ?>";
document.getElementById("url").innerText = urlstr;
document.getElementById("url").innerHTML = urlstr; //Need this as well, for Firefox

document.getElementById("urlbox").style.display = "block";
}
Expand Down

0 comments on commit fa20043

Please sign in to comment.