javascript MDL-26098 close_window and close_window_reloading_opener were both broken.

This commit is contained in:
Tim Hunt
2011-01-29 13:55:47 +00:00
parent 8cdc85ac62
commit 1db6b9b886

View File

@@ -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.
}
}