Made the AJAX setting look a little better when AJAX is off
This commit is contained in:
@@ -202,6 +202,9 @@ if (has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM, SI
|
||||
unset($choices);
|
||||
$choices["0"] = get_string("ajaxno");
|
||||
$choices["1"] = get_string("ajaxyes");
|
||||
if (empty($CFG->enableajax)) {
|
||||
$user->ajax = 0;
|
||||
}
|
||||
choose_from_menu ($choices, 'ajax', $user->ajax, '', '', 0, false, empty($CFG->enableajax)) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -114,6 +114,10 @@
|
||||
} else {
|
||||
unset_user_preference('mailcharset', $user->id);
|
||||
}
|
||||
if (empty($CFG->enableajax)) {
|
||||
unset($usernew->ajax);
|
||||
}
|
||||
|
||||
$usernew->maildigest = clean_param($usernew->maildigest, PARAM_INT);
|
||||
$usernew->autosubscribe = clean_param($usernew->autosubscribe, PARAM_INT);
|
||||
if (!empty($CFG->htmleditor)) {
|
||||
|
||||
Reference in New Issue
Block a user