Skip to content

Commit

Permalink
MDL-39029 quiz password: autofocus feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshanandani committed Apr 11, 2013
1 parent 422f68f commit 6b7a020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/accessrule/password/rule.php
Expand Up @@ -64,7 +64,7 @@ public function add_preflight_check_form_fields(mod_quiz_preflight_check_form $q
// Don't use the 'proper' field name of 'password' since that get's
// Firefox's password auto-complete over-excited.
$mform->addElement('password', 'quizpassword',
get_string('quizpassword', 'quizaccess_password'));
get_string('quizpassword', 'quizaccess_password'), array('autofocus' => 'true'));
}

public function validate_preflight_check($data, $files, $errors, $attemptid) {
Expand Down

0 comments on commit 6b7a020

Please sign in to comment.