From: Marius Hoch Date: Tue, 1 Jan 2013 21:44:53 +0000 (+0100) Subject: (bug 43560) Initial input focus on Special:ListUsers isn't set X-Git-Tag: 1.31.0-rc.0~20799^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=781388f202fd5a3b300cdf300c03b7cfa10ae629;p=lhc%2Fweb%2Fwiklou.git (bug 43560) Initial input focus on Special:ListUsers isn't set Set the input focus on Special:ListUsers to the user name field in case no user name was given as input. Change-Id: I13b75baf95bac8d25b019a82e9f8504cfa779b96 --- diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index ea598c3687..5787595726 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -218,7 +218,16 @@ class UsersPager extends AlphabeticPager { # Username field $out .= Xml::label( $this->msg( 'listusersfrom' )->text(), 'offset' ) . ' ' . - Xml::input( 'username', 20, $this->requestedUser, array( 'id' => 'offset' ) ) . ' '; + Html::input( + 'username', + $this->requestedUser, + 'text', + array( + 'id' => 'offset', + 'size' => 20, + 'autofocus' => $this->requestedUser === '' + ) + ) . ' '; # Group drop-down list $out .= Xml::label( $this->msg( 'group' )->text(), 'group' ) . ' ' .