X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialActiveusers.php;h=70c7a8b6d58ecd9a8ec49819931521ff1ce7c912;hb=d949901f3cc991d41d10eb2b2dcf62a46c1ff6bd;hp=047e941382b1bbadfb996516608d94bc6215782a;hpb=8c087b9fd13d9302ec1be2176ef1ae344b3f8273;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index 047e941382..70c7a8b6d5 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -212,10 +212,20 @@ class ActiveUsersPager extends UsersPager { $out .= Xml::fieldset( $this->msg( 'activeusers' )->text() ) . "\n"; $out .= Html::hidden( 'title', $self->getPrefixedDBkey() ) . $limit . "\n"; - # Username field - $out .= Xml::inputLabel( $this->msg( 'activeusers-from' )->text(), - 'username', 'offset', 20, $this->requestedUser, - array( 'class' => 'mw-ui-input-inline', 'tabindex' => 1 ) ) . '
'; + # Username field (with autocompletion support) + $this->getOutput()->addModules( 'mediawiki.userSuggest' ); + $out .= Xml::inputLabel( + $this->msg( 'activeusers-from' )->text(), + 'username', + 'offset', + 20, + $this->requestedUser, + array( + 'class' => 'mw-ui-input-inline mw-autocomplete-user', + 'tabindex' => 1, + 'autofocus' => $this->requestedUser === '', + ) + ) . '
'; $out .= Xml::checkLabel( $this->msg( 'activeusers-hidebots' )->text(), 'hidebots', 'hidebots', $this->opts->getValue( 'hidebots' ), array( 'tabindex' => 2 ) ); @@ -230,7 +240,7 @@ class ActiveUsersPager extends UsersPager { # Submit button and form bottom $out .= Xml::submitButton( - $this->msg( 'allpagessubmit' )->text(), + $this->msg( 'activeusers-submit' )->text(), array( 'tabindex' => 4 ) ) . "\n"; $out .= Xml::closeElement( 'fieldset' ); @@ -308,3 +318,5 @@ class SpecialActiveUsers extends SpecialPage { return 'users'; } } + +