MDL-32908 - drop $USER->ajax

Its not been respected for some time and is just confusing
This commit is contained in:
Dan Poltawski
2012-06-19 15:07:18 +08:00
parent f4a9bf65da
commit a80b5a0cf0
10 changed files with 27 additions and 34 deletions
-10
View File
@@ -196,16 +196,6 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
$mform->setType('htmleditor', PARAM_INT);
}
if (empty($CFG->enableajax)) {
$mform->addElement('static', 'ajaxdisabled', get_string('ajaxuse'), get_string('ajaxno'));
} else {
$choices = array();
$choices['0'] = get_string('ajaxno');
$choices['1'] = get_string('ajaxyes');
$mform->addElement('select', 'ajax', get_string('ajaxuse'), $choices);
$mform->setDefault('ajax', 1);
}
$choices = array();
$choices['0'] = get_string('screenreaderno');
$choices['1'] = get_string('screenreaderyes');