MDL-15318 - url is a reserved word in JavaScript in IE, so the Gen Calendar URL button does not work there

This commit is contained in:
tjhunt 2008-06-19 14:24:09 +00:00
parent 8b2f8253ad
commit fa200431b1

View File

@ -47,9 +47,9 @@ function generate_url() {
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";
}