Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-32388 SCORM: Fix chrome pop-ups

  • Loading branch information...
commit 6db00e4208217872cd76e2144198a161a110db3b 1 parent 58be053
@danmarsden danmarsden authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 mod/scorm/player.php
View
14 mod/scorm/player.php
@@ -297,19 +297,19 @@
//<![CDATA[
scorm_resize(<?php echo $scorm->width.", ". $scorm->height; ?>);
function openpopup(url,name,options,width,height) {
- fullurl = "<?php echo $CFG->wwwroot.'/mod/scorm/' ?>" + url;
- windowobj = window.open(fullurl,name,options);
- if ((width==100) && (height==100)) {
- // Fullscreen
- windowobj.moveTo(0,0);
- }
if (width<=100) {
width = Math.round(screen.availWidth * width / 100);
}
if (height<=100) {
height = Math.round(screen.availHeight * height / 100);
}
- windowobj.resizeTo(width,height);
+ options += ",width="+width+",height="+height;
+ fullurl = "<?php echo $CFG->wwwroot.'/mod/scorm/' ?>" + url;
+ windowobj = window.open(fullurl,name,options);
+ if ((width==100) && (height==100)) {
+ // Fullscreen
+ windowobj.moveTo(0,0);
+ }
windowobj.focus();
return windowobj;
}
Please sign in to comment.
Something went wrong with that request. Please try again.