Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ed to windowed
  • Loading branch information...
commit 82b815c4454b25f1e98c23425a71c938ceb427d8 1 parent a88c8e9
bobopinna authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/scorm/details.php
View
4 mod/scorm/details.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.