Permalink
Browse files

MDL-39029 quiz password: autofocus feature added

  • Loading branch information...
1 parent 422f68f commit 6b7a020b238e6fa85b80523277fe05ed06ec2769 @jayeshanandani jayeshanandani committed Apr 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/accessrule/password/rule.php
@@ -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) {

0 comments on commit 6b7a020

Please sign in to comment.