Skip to content

Commit

Permalink
javascript MDL-26098 close_window and close_window_reloading_opener w…
Browse files Browse the repository at this point in the history
…ere both broken.
  • Loading branch information
timhunt committed Jan 29, 2011
1 parent 8cdc85a commit 1db6b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/javascript-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ function close_window(e) {
} else {
e.returnValue = false;
}
self.close();
window.close();
}

/**
Expand All @@ -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.
}
}
Expand Down

0 comments on commit 1db6b9b

Please sign in to comment.