From 6b7a020b238e6fa85b80523277fe05ed06ec2769 Mon Sep 17 00:00:00 2001 From: Jayesh Anandani Date: Thu, 11 Apr 2013 16:25:34 +0530 Subject: [PATCH] MDL-39029 quiz password: autofocus feature added --- mod/quiz/accessrule/password/rule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/accessrule/password/rule.php b/mod/quiz/accessrule/password/rule.php index a7490d9dc9758..778e39028916d 100644 --- a/mod/quiz/accessrule/password/rule.php +++ b/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) {