From e746c335112f6ce767e58863e773d2043e99e4ad Mon Sep 17 00:00:00 2001 From: Southparkfan Date: Tue, 8 Sep 2015 19:25:37 +0200 Subject: [PATCH] Enable autocompletion for Special:ListUsers The "display users starting at" inputbox will now show some suggestions. Bug: T105569 Change-Id: I5d9fd5ea34d247ea688b32102700e6cef2c1e527 --- includes/specials/SpecialListusers.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 === '' -- 2.20.1