Merge branch 'MDL-39029' of git://github.com/jacks92/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 16 Apr 2013 12:30:10 +0000 (13:30 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 16 Apr 2013 12:30:10 +0000 (13:30 +0100)
mod/quiz/accessrule/password/rule.php

index a7490d9..778e390 100644 (file)
@@ -64,7 +64,7 @@ class quizaccess_password extends quiz_access_rule_base {
         // 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) {