Made the AJAX setting look a little better when AJAX is off

This commit is contained in:
moodler
2006-10-30 08:19:30 +00:00
parent 9a1e5c1750
commit 378d834f44
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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>
+4
View File
@@ -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)) {