mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Not so nice fix for "Not allowed to write to dialogs" on FireFox!
This commit is contained in:
parent
9e6f39a42a
commit
361b68b34a
@ -61,7 +61,9 @@ Dialog._geckoOpenModal = function(url, action, init) {
|
||||
};
|
||||
capwin(window);
|
||||
// capture other frames
|
||||
for (var i = 0; i < window.frames.length; capwin(window.frames[i++]));
|
||||
if(document.all) {
|
||||
for (var i = 0; i < window.frames.length; capwin(window.frames[i++]));
|
||||
}
|
||||
// make up a function to be called when the Dialog ends.
|
||||
Dialog._return = function (val) {
|
||||
if (val && action) {
|
||||
@ -69,7 +71,9 @@ Dialog._geckoOpenModal = function(url, action, init) {
|
||||
}
|
||||
relwin(window);
|
||||
// capture other frames
|
||||
for (var i = 0; i < window.frames.length; relwin(window.frames[i++]));
|
||||
if(document.all) {
|
||||
for (var i = 0; i < window.frames.length; relwin(window.frames[i++]));
|
||||
}
|
||||
Dialog._modal = null;
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user