MDL-34755 SCORM: pop-up not loading in IE7/IE8 compat mode

This commit is contained in:
Simon Coggins
2012-09-04 13:11:22 +12:00
committed by Dan Marsden
parent 569f1ad63b
commit 02ed0df5ae
+2 -2
View File
@@ -1,6 +1,6 @@
M.mod_scormform = {};
M.mod_scormform.init = function(Y) {
var scormform = Y.one('#scormviewform');
var scormform = document.getElementById('scormviewform');
var cwidth = scormplayerdata.cwidth;
var cheight = scormplayerdata.cheight;
var poptions = scormplayerdata.popupoptions;
@@ -15,5 +15,5 @@ M.mod_scormform.init = function(Y) {
}
poptions = poptions+',width='+cwidth+',height='+cheight;
}
scormform.setAttribute('onsubmit', "window.open('','Popup','"+poptions+"'); this.target='Popup';");
scormform.onsubmit = function() {window.open('', 'Popup', poptions); this.target='Popup';};
}