Browse files

Fixed a problem with explorer and popup windows

  • Loading branch information...
1 parent 6703e4a commit d51d6583a7f1ef8bfda34e83fd2826335d4aea55 bobopinna committed Aug 4, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/scorm/player.php
View
3 mod/scorm/player.php
@@ -232,6 +232,7 @@ class="scoframe"
<script lanuguage="javascript">
function openpopup(url,name,options,width,height) {
fullurl = "<?php echo $CFG->wwwroot.'/mod/scorm/' ?>" + url;
+ alert(fullurl+"\n"+name+"\n"+options);
windowobj = window.open(fullurl,name,options);
if ((width==100) && (height==100)) {
// Fullscreen
@@ -251,7 +252,7 @@ function openpopup(url,name,options,width,height) {
url = "loadSCO.php?id=<?php echo $cm->id.$scoidpop ?>";
width = <?php p($scorm->width) ?>;
height = <?php p($scorm->height) ?>;
- var main = openpopup(url, "<?php p($scorm->name) ?>", "<?php p($scorm->options) ?>", width, height);
+ var main = openpopup(url, "popupwindow", "<?php p($scorm->options) ?>", width, height);
</script>
<noscript>
<iframe id="main"

0 comments on commit d51d658

Please sign in to comment.