Permalink
Browse files

Fixed a problem with Firefox

  • Loading branch information...
bobopinna
bobopinna committed Sep 26, 2006
1 parent c9a2f27 commit a9d22c84b6ba756c6e20f97376717065d91419aa
Showing with 5 additions and 1 deletion.
  1. +4 −0 mod/scorm/lib.php
  2. +1 −1 mod/scorm/mod.html
View
@@ -87,7 +87,11 @@ function scorm_update_instance($scorm) {
delete_records('scorm_sequencing_rulecondition','scormid',$scorm->id);
*/
$scorm->launch = scorm_parse($scorm);
+ } else {
+ $oldscorm = get_record('scorm','id',$scorm->id);
+ $scorm->reference = $oldscorm->reference; // This fix a problem with Firefox when the teacher choose Cancel on overwrite question
}
+
return update_record('scorm', $scorm);
}
View
@@ -202,7 +202,7 @@
}
</script>
-<form name="form" method="post" action="mod.php?goto=" onsubmit="return validate_scorm(document.form,document.form.reference.value,false,false);">
+<form name="form" method="post" action="mod.php?goto=" onsubmit="return validate_scorm(document.form,document.form.reference.value,false)">
<table cellpadding="5">
<tr valign="top">
<td align="right"><b><?php print_string('name') ?>:</b></td>

0 comments on commit a9d22c8

Please sign in to comment.