Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit b91833db8ae962c287030e18ab482c1fb43f8008 1 parent 9815783
Simon Coggins simoncoggins authored danmarsden committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 mod/scorm/view.js
4 mod/scorm/view.js
... ... @@ -1,6 +1,6 @@
1 1 M.mod_scormform = {};
2 2 M.mod_scormform.init = function(Y) {
3   - var scormform = Y.one('#scormviewform');
  3 + var scormform = document.getElementById('scormviewform');
4 4 var cwidth = scormplayerdata.cwidth;
5 5 var cheight = scormplayerdata.cheight;
6 6 var poptions = scormplayerdata.popupoptions;
@@ -15,5 +15,5 @@ M.mod_scormform.init = function(Y) {
15 15 }
16 16 poptions = poptions+',width='+cwidth+',height='+cheight;
17 17 }
18   - scormform.setAttribute('onsubmit', "window.open('','Popup','"+poptions+"'); this.target='Popup';");
  18 + scormform.onsubmit = function() {window.open('', 'Popup', poptions); this.target='Popup';};
19 19 }

0 comments on commit b91833d

Please sign in to comment.
Something went wrong with that request. Please try again.