MDL-30893 Accessibility Submit button in forgot password page now have separate ids

This commit is contained in:
Ankit Agarwal
2012-03-02 11:25:13 +08:00
parent 5bbf3cb72b
commit cc4e04798e
+2 -2
View File
@@ -39,7 +39,7 @@ class login_forgot_password_form extends moodleform {
$mform->setType('username', PARAM_RAW);
$submitlabel = get_string('search');
$mform->addElement('submit', 'submitbutton', $submitlabel);
$mform->addElement('submit', 'submitbuttonusername', $submitlabel);
$mform->addElement('header', '', get_string('searchbyemail'), '');
@@ -47,7 +47,7 @@ class login_forgot_password_form extends moodleform {
$mform->setType('email', PARAM_RAW);
$submitlabel = get_string('search');
$mform->addElement('submit', 'submitbutton', $submitlabel);
$mform->addElement('submit', 'submitbuttonemail', $submitlabel);
}
function validation($data, $files) {