From: bobopinna <bobopinna>
Date: Mon, 20 Sep 2004 14:35:24 +0000 (+0000)
Subject: Fixed a problem with onbeforeunload
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f02f534d0bc3052333ccfd48832c78624623a46;p=moodle.git

Fixed a problem with onbeforeunload
---

diff --git a/mod/scorm/playscorm.php b/mod/scorm/playscorm.php
index 8c1c910f9b..f5d6e35397 100755
--- a/mod/scorm/playscorm.php
+++ b/mod/scorm/playscorm.php
@@ -270,7 +270,7 @@
     	    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&amp;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&amp;mode=".$mode.'&amp;currentorg='.$currentorg."&amp;frameset=top\">\n";
             echo "\t    <frame name=\"main\" src=\"\">\n";
             echo "</frameset>\n";