MDL-32908 - drop $USER->ajax
Its not been respected for some time and is just confusing
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user