Browse files

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

…xplaining what it does.
  • Loading branch information...
danmarsden committed Jun 30, 2011
1 parent d64baec commit 9f098ef0ec5cfb1873b39730687a922153fd25f2
Showing with 2 additions and 1 deletion.
  1. +1 −0 mod/scorm/lang/en/scorm.php
  2. +1 −1 mod/scorm/settings.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';
@@ -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 9f098ef

Please sign in to comment.