mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
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:
parent
8b2f8253ad
commit
fa200431b1
@ -47,9 +47,9 @@ function generate_url() {
|
||||
preset_time = "recentupcoming";
|
||||
}
|
||||
|
||||
url = "<?php echo $CFG->wwwroot; ?>/calendar/export_execute.php?preset_what=" + preset_what + "&preset_time=" + preset_time + "&username=<?php echo $usernameencoded; ?>&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 + "&preset_time=" + preset_time + "&username=<?php echo $usernameencoded; ?>&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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user