From 421f2eca6ea3d7a778e83f4fe4f49503615192dd Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 5 Dec 2013 13:04:11 +1300 Subject: [PATCH] MDL-43019 SCORM: always use iframe instead of object - backported from 2.6 - fixes issue with IE 11 SCORM packages not loading --- mod/scorm/module.js | 57 ++++++++++--------------------------------- mod/scorm/player.php | 5 ---- mod/scorm/version.php | 2 +- 3 files changed, 14 insertions(+), 50 deletions(-) diff --git a/mod/scorm/module.js b/mod/scorm/module.js index 10f078fc941..39d03077cba 100644 --- a/mod/scorm/module.js +++ b/mod/scorm/module.js @@ -100,41 +100,20 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc } var content = new Y.YUI2.util.Element('scorm_content'); - try { - // first try IE way - it can not set name attribute later - // and also it has some restrictions on DOM access from object tag - if (window_name || node.title == null) { - var obj = document.createElement(' - - version = 2013050102; // The current module version (Date: YYYYMMDDXX) +$module->version = 2013050103; // The current module version (Date: YYYYMMDDXX) $module->requires = 2013050100; // Requires this Moodle version $module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics) $module->cron = 300;