From: Southparkfan Date: Tue, 8 Sep 2015 17:25:37 +0000 (+0200) Subject: Enable autocompletion for Special:ListUsers X-Git-Tag: 1.31.0-rc.0~10079^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=e746c335112f6ce767e58863e773d2043e99e4ad;p=lhc%2Fweb%2Fwiklou.git Enable autocompletion for Special:ListUsers The "display users starting at" inputbox will now show some suggestions. Bug: T105569 Change-Id: I5d9fd5ea34d247ea688b32102700e6cef2c1e527 --- diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 9e7dc00923..31200c84cc 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -263,6 +263,8 @@ class UsersPager extends AlphabeticPager { function getPageHeader() { list( $self ) = explode( '/', $this->getTitle()->getPrefixedDBkey() ); + $this->getOutput()->addModules( 'mediawiki.userSuggest' ); + # Form tag $out = Xml::openElement( 'form', @@ -271,13 +273,14 @@ class UsersPager extends AlphabeticPager { Xml::fieldset( $this->msg( 'listusers' )->text() ) . Html::hidden( 'title', $self ); - # Username field + # Username field (with autocompletion support) $out .= Xml::label( $this->msg( 'listusersfrom' )->text(), 'offset' ) . ' ' . Html::input( 'username', $this->requestedUser, 'text', array( + 'class' => 'mw-autocomplete-user', 'id' => 'offset', 'size' => 20, 'autofocus' => $this->requestedUser === ''