Permalink
Browse files

Fixed a problem with onbeforeunload

  • Loading branch information...
1 parent ebd62fd commit f6c70cf3bf10ceb98961cccbfcbb706c306cc683 bobopinna committed Sep 20, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/playscorm.php
@@ -73,7 +73,7 @@
//
$bodyscripts = "";
if ($scorm->popup != "") {
- $bodyscripts = "onLoad='SCOInitialize();' onUnload='SCOFinish(); closeMain();' onbeforeUnload='SCOFinish();'";
+ $bodyscripts = "onLoad='SCOInitialize();' onUnload='SCOFinish(); closeMain();' ";
}
print_header($pagetitle, "$course->fullname",
"$navigation <a target=\"{$CFG->framename}\" href=\"view.php?id=$cm->id\" title=\"$scorm->summary\">$scorm->name</a>",
@@ -272,7 +272,7 @@ function expandCollide(which,list) {
echo "<html>\n";
echo "<head><title>$course->shortname: $scorm->name</title></head>\n";
echo "<script id=\"scormAPI\" language=\"JavaScript\" type=\"text/javascript\" src=\"scormAPI.php?id=$cm->id&mode=".$mode.$scoid."\"></script>\n";
- echo "<frameset rows=\"$CFG->scorm_framesize,*\" onLoad=\"SCOInitialize();\" onUnload=\"SCOFinish();\" onbeforeUnload=\"SCOFinish();\">\n";
+ echo "<frameset rows=\"$CFG->scorm_framesize,*\" onLoad=\"SCOInitialize();\" onUnload=\"SCOFinish();\">\n";
echo "\t <frame name=\"navigation\" src=\"playscorm.php?id=$cm->id&mode=".$mode.'&currentorg='.$currentorg."&frameset=top\">\n";
echo "\t <frame name=\"main\" src=\"\">\n";
echo "</frameset>\n";

0 comments on commit f6c70cf

Please sign in to comment.