Turn AJAX off for now at site level MDL-7254; merged from MOODLE_17_STABLE

This commit is contained in:
skodak
2006-10-27 20:34:40 +00:00
parent 4bfb64aad2
commit 7b9c99798c
4 changed files with 7 additions and 4 deletions
+1
View File
@@ -88,6 +88,7 @@ $ADMIN->add('server', $temp);
$temp = new admin_settingpage('debugging', get_string('debugging', 'admin'));
$temp->add(new admin_setting_special_debug());
$temp->add(new admin_setting_special_perfdebug());
$temp->add(new admin_setting_configcheckbox('enableajax', get_string('enableajax', 'admin'), get_string('configenableajax', 'admin'), 0));
$ADMIN->add('server', $temp);
+2 -2
View File
@@ -129,8 +129,8 @@
if (file_exists($ajaxformatfile)) {
require_once($ajaxformatfile);
if ($USER->editing && !empty($USER->ajax) && $CFG->ajaxcapable) {
if ($USER->editing && !empty($USER->ajax) && !empty($CFG->enableajax) && $CFG->ajaxcapable) {
if ($meta = require_js(array('yui_yahoo',
'yui_dom',
'yui_event',
+3 -1
View File
@@ -3,6 +3,9 @@
// begin {added with admin cleanup}
$string['enableajax'] = 'Enable AJAX';
$string['configenableajax'] = 'If you enable AJAX features users can disable them in their profile, otherwise AJAX is disabled for everybody.';
$string['autologinguests'] = 'Auto-login guests';
$string['search'] = 'Search';
$string['searchresults'] = 'Search Results';
@@ -367,7 +370,6 @@ $string['lang16notify'] = 'Moodle 1.6 and above allows you to install and update
$string['langedit'] = 'Language editing';
$string['langpacks'] = 'Language packs';
$string['langimportsuccess'] = 'Language pack successfully upgraded';
$string['langimport'] = 'Language import utility';
$string['langpackremoved'] = 'Language pack was uninstalled';
$string['langpackupdated'] = 'Language pack $a was successfully installed';
$string['langupdatecomplete'] = 'Language pack update completed';
+1 -1
View File
@@ -202,7 +202,7 @@ if (has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM, SI
unset($choices);
$choices["0"] = get_string("ajaxno");
$choices["1"] = get_string("ajaxyes");
choose_from_menu ($choices, 'ajax', $user->ajax, "") ?>
choose_from_menu ($choices, 'ajax', $user->ajax, '', '', 0, false, empty($CFG->enableajax)) ?>
</td>
</tr>
<tr>