MDL-43247 SCORM: use window.closed property instead of window.opener for IE

This commit is contained in:
Dan Marsden
2014-01-23 20:38:01 +13:00
parent ed8eebeece
commit ed3d1ee60d
+1 -1
View File
@@ -45,7 +45,7 @@ M.mod_scormform.init = function(Y) {
var scormunload = function () {
// Onunload is called multiple times in the SCORM window - we only want to handle when it is actually closed.
setTimeout(function() {
if (!winobj.opener) {
if (winobj.closed) {
// Redirect the parent window to the course homepage.
parent.window.location = course_url;
}