mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Fixing [Bug 1427] (Better than just uncommenting :-) )
This commit is contained in:
parent
e60624da41
commit
b136a79771
1 changed files with 11 additions and 9 deletions
|
@ -44,15 +44,17 @@ var editor = null; // to be initialized later [ function init() ]
|
||||||
\* ---------------------------------------------------------------------- */
|
\* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
function _CloseOnEsc(ev) {
|
function _CloseOnEsc(ev) {
|
||||||
if (document.all) {
|
try {
|
||||||
// IE
|
if (document.all) {
|
||||||
ev = window.event;
|
// IE
|
||||||
}
|
ev || (ev = editor._iframe.contentWindow.event);
|
||||||
if (ev.keyCode == 27) {
|
}
|
||||||
// update_parent();
|
if (ev.keyCode == 27) {
|
||||||
window.close();
|
// update_parent();
|
||||||
return;
|
window.close();
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- *\
|
/* ---------------------------------------------------------------------- *\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue