MDL-8096 two submit buttons not needed anymore now that we have advanced settings button; two submit buttons are accessibility problem anyway

This commit is contained in:
skodak
2007-01-23 10:11:12 +00:00
parent f017ea3045
commit 5cd2273fe1
+1 -7
View File
@@ -251,10 +251,6 @@ class user_edit_form extends moodleform {
}
$mform->addElement('submit', 'submitbutton1', get_string('updatemyprofile'));
$mform->closeHeaderBefore('submitbutton1');
/// Moodle optional fields
$mform->addElement('header', 'moodle_optional', get_string('optional', 'form'));
$mform->setAdvanced('moodle_optional');
@@ -342,9 +338,7 @@ class user_edit_form extends moodleform {
} /// End of $categories foreach
} /// End of $categories if
$mform->addElement('submit', 'submitbutton2', get_string('updatemyprofile'));
$mform->closeHeaderBefore('submitbutton2');
$this->add_action_buttons(false, get_string('updatemyprofile'));
} /// End of function