Skip to content

Commit

Permalink
MDL-42992 SCORM: Always allow IE to resize window
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Nov 20, 2013
1 parent b58bc15 commit 18a34b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions mod/scorm/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ M.mod_scorm.init = function(Y, nav_display, navposition_left, navposition_top, h
var cwidth = scormplayerdata.cwidth;
var cheight = scormplayerdata.cheight;
var poptions = scormplayerdata.popupoptions;
poptions = poptions + ',resizable=yes'; // Added for IE (MDL-32506).
scorm_openpopup(M.cfg.wwwroot + "/mod/scorm/loadSCO.php?" + node.title, window_name, poptions, cwidth, cheight);
} else {
content.replaceChild(obj, old);
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

defined('MOODLE_INTERNAL') || die();

$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
$module->version = 2013110501; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2013110500; // Requires this Moodle version
$module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics)
$module->cron = 300;
2 changes: 2 additions & 0 deletions mod/scorm/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ M.mod_scormform.init = function(Y) {
var launch_url = M.cfg.wwwroot+"/mod/scorm/player.php?a="+scorm+"&currentorg="+currentorg+"&scoid="+sco+"&sesskey="+M.cfg.sesskey;
var course_url = scormplayerdata.courseurl;

poptions = poptions + ',resizable=yes'; // Added for IE (MDL-32506).

if ((cwidth==100) && (cheight==100)) {
poptions = poptions+',width='+screen.availWidth+',height='+screen.availHeight+',left=0,top=0';
} else {
Expand Down

0 comments on commit 18a34b0

Please sign in to comment.