From 02ed0df5ae140f91c353d3c729ef2dfa5afa8856 Mon Sep 17 00:00:00 2001 From: Simon Coggins Date: Tue, 4 Sep 2012 13:10:02 +1200 Subject: [PATCH] MDL-34755 SCORM: pop-up not loading in IE7/IE8 compat mode --- mod/scorm/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/scorm/view.js b/mod/scorm/view.js index 1fd0a294dac..e3628ead89e 100644 --- a/mod/scorm/view.js +++ b/mod/scorm/view.js @@ -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';}; }