From: Alex Monk Date: Sun, 19 Apr 2015 14:29:48 +0000 (+0100) Subject: Special:ChangeEmail: Set autofocus on new email field rather than password field X-Git-Tag: 1.31.0-rc.0~11659 X-Git-Url: http://git.cyclocoop.org//%22%22.url_de_base%28%29.%22/%22?a=commitdiff_plain;h=3528ecce92807f810c314fc61b4e69d604cbe94e;p=lhc%2Fweb%2Fwiklou.git Special:ChangeEmail: Set autofocus on new email field rather than password field Bug: T96509 Change-Id: I657638509b9600a15bb8b6e7bb99f29340b3799e --- diff --git a/includes/specials/SpecialChangeEmail.php b/includes/specials/SpecialChangeEmail.php index 3ed3c04eba..babb315483 100644 --- a/includes/specials/SpecialChangeEmail.php +++ b/includes/specials/SpecialChangeEmail.php @@ -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' ); }