Permalink
Browse files

Added default values for popup window when scorm is updated from fram…

…ed to windowed
  • Loading branch information...
bobopinna
bobopinna committed Jun 30, 2004
1 parent a88c8e9 commit 82b815c4454b25f1e98c23425a71c938ceb427d8
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/scorm/details.php
View
@@ -102,6 +102,10 @@
if ($form->instance) { // Re-editing
if ($form->popup == "") {
$newwindow = ""; // Disable the new window
+ foreach ($SCORM_WINDOW_OPTIONS as $optionname) {
+ $defaultvalue = "scorm_popup$optionname";
+ $window->$optionname = $CFG->$defaultvalue;
+ }
} else {
$newwindow = "checked";
$rawoptions = explode(',', $form->popup);

0 comments on commit 82b815c

Please sign in to comment.