Turn AJAX off for now at site level MDL-7254; merged from MOODLE_17_STABLE
This commit is contained in:
@@ -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
@@ -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,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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user