Special:ChangeEmail: Set autofocus on new email field rather than password field
authorAlex Monk <krenair@gmail.com>
Sun, 19 Apr 2015 14:29:48 +0000 (15:29 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 19 Apr 2015 19:28:39 +0000 (19:28 +0000)
Bug: T96509
Change-Id: I657638509b9600a15bb8b6e7bb99f29340b3799e

includes/specials/SpecialChangeEmail.php

index 3ed3c04..babb315 100644 (file)
@@ -92,14 +92,14 @@ class SpecialChangeEmail extends FormSpecialPage {
                        'NewEmail' => array(
                                'type' => 'email',
                                'label-message' => 'changeemail-newemail',
+                               'autofocus' => true
                        ),
                );
 
                if ( $this->getConfig()->get( 'RequirePasswordforEmailChange' ) ) {
                        $fields['Password'] = array(
                                'type' => 'password',
-                               'label-message' => 'changeemail-password',
-                               'autofocus' => true,
+                               'label-message' => 'changeemail-password'
                        );
                }