Southparkfan has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/236839

Change subject: Enable autocompletion for Special:ListUsers
......................................................................

Enable autocompletion for Special:ListUsers

The "display users starting at" inputbox will now show some suggestions.

Bug: T105569
Change-Id: I5d9fd5ea34d247ea688b32102700e6cef2c1e527
---
M includes/specials/SpecialListusers.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/39/236839/1

diff --git a/includes/specials/SpecialListusers.php 
b/includes/specials/SpecialListusers.php
index 9e7dc00..31200c8 100644
--- a/includes/specials/SpecialListusers.php
+++ b/includes/specials/SpecialListusers.php
@@ -263,6 +263,8 @@
        function getPageHeader() {
                list( $self ) = explode( '/', 
$this->getTitle()->getPrefixedDBkey() );
 
+               $this->getOutput()->addModules( 'mediawiki.userSuggest' );
+
                # Form tag
                $out = Xml::openElement(
                        'form',
@@ -271,13 +273,14 @@
                        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 === 
''

-- 
To view, visit https://gerrit.wikimedia.org/r/236839
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d9fd5ea34d247ea688b32102700e6cef2c1e527
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Southparkfan <southparkfan...@hotmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to