Permalink
Browse files

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

  • Loading branch information...
1 parent 9815783 commit b91833db8ae962c287030e18ab482c1fb43f8008 @simoncoggins simoncoggins committed with danmarsden Sep 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/view.js
View
@@ -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';};
}

0 comments on commit b91833d

Please sign in to comment.