Browse files

SCORM MDL-28110 set default for forcejavascript to yes - add string e…

…xplaining what it does.
  • Loading branch information...
1 parent ff555b5 commit 74e78f3ad8c7091e67aff07076b7a497456c82b8 @danmarsden danmarsden committed Jun 30, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 mod/scorm/lang/en/scorm.php
  2. +1 −1 mod/scorm/settings.php
1 mod/scorm/lang/en/scorm.php
@@ -98,6 +98,7 @@
$string['forcenewattempt_help'] = 'If enabled, each time a SCORM package is accessed will be counted as a new attempt.';
$string['forcenewattemptdesc'] = 'This preference sets the default value for the force new attempt setting';
$string['forcejavascript'] = 'Force users to enable JavaScript';
+$string['forcejavascript_help'] = 'If enabled(recommended) this prevents access to SCORM objects when JavaScript is not supported/enabled in a users browser. If disabled the user may view the SCORM but API communication will fail and no grade information will be saved.';
$string['forcejavascriptmessage'] = 'JavaScript is required to view this object, please enable JavaScript in your browser and try again.';
$string['found'] = 'Manifest found';
$string['frameheight'] = 'This preference set the default height for stage frame or window';
2 mod/scorm/settings.php
@@ -58,7 +58,7 @@
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeimsrepository', get_string('allowtypeimsrepository', 'scorm'), '', 0));
- $settings->add(new admin_setting_configcheckbox('scorm/forcejavascript', get_string('forcejavascript', 'scorm'), '', 0));
+ $settings->add(new admin_setting_configcheckbox('scorm/forcejavascript', get_string('forcejavascript', 'scorm'), get_string('forcejavascript_help', 'scorm'), 1));
$settings->add(new admin_setting_configcheckbox('scorm/allowapidebug', get_string('allowapidebug', 'scorm'), '', 0));

0 comments on commit 74e78f3

Please sign in to comment.