mirror of
https://github.com/moodle/moodle.git
synced 2025-07-28 01:41:03 +02:00
javascript MDL-26098 close_window and close_window_reloading_opener were both broken.
This commit is contained in:
@@ -1058,7 +1058,7 @@ function close_window(e) {
|
||||
} else {
|
||||
e.returnValue = false;
|
||||
}
|
||||
self.close();
|
||||
window.close();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1067,7 +1067,7 @@ function close_window(e) {
|
||||
function close_window_reloading_opener() {
|
||||
if (window.opener) {
|
||||
window.opener.location.reload(1);
|
||||
close_window();
|
||||
close_window({});
|
||||
// Intentionally, only try to close the window if there is some evidence we are in a popup.
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user