mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
d23e60ad43
commit
9f18286f31
1 changed files with 3 additions and 3 deletions
|
@ -47,9 +47,9 @@ function generate_url() {
|
||||||
preset_time = "recentupcoming";
|
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; ?>";
|
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 = url;
|
document.getElementById("url").innerText = urlstr;
|
||||||
document.getElementById("url").innerHTML = url; //Need this as well, for Firefox
|
document.getElementById("url").innerHTML = urlstr; //Need this as well, for Firefox
|
||||||
|
|
||||||
document.getElementById("urlbox").style.display = "block";
|
document.getElementById("urlbox").style.display = "block";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue