Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

javascript MDL-26098 close_window and close_window_reloading_opener w…

…ere both broken.
  • Loading branch information...
commit 1db6b9b8866a0be8ab7deec68d9b05260572e8cc 1 parent 8cdc85a
@timhunt timhunt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/javascript-static.js
View
4 lib/javascript-static.js
@@ -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.
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.