Merge branch 'm23_MDL-34755' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE
authorSam Hemelryk <sam@moodle.com>
Tue, 11 Sep 2012 03:02:26 +0000 (15:02 +1200)
committerSam Hemelryk <sam@moodle.com>
Tue, 11 Sep 2012 03:02:26 +0000 (15:02 +1200)
mod/scorm/view.js

index 1fd0a29..e3628ea 100644 (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';};
 }