Jack Phoenix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/327932 )

Change subject: Special:GiveGift should use autocompletion to make finding 
users easier
......................................................................

Special:GiveGift should use autocompletion to make finding users easier

Bug: T153519
Change-Id: I9a0d7eb12e937ae5c8e343378d6a40ae8ad54a7f
---
M UserGifts/SpecialGiveGift.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile 
refs/changes/32/327932/1

diff --git a/UserGifts/SpecialGiveGift.php b/UserGifts/SpecialGiveGift.php
index a4a8259..8e13c90 100644
--- a/UserGifts/SpecialGiveGift.php
+++ b/UserGifts/SpecialGiveGift.php
@@ -241,6 +241,7 @@
                global $wgFriendingEnabled;
 
                $this->getOutput()->setPageTitle( $this->msg( 
'g-give-no-user-title' )->plain() );
+               $this->getOutput()->addModules( 'mediawiki.userSuggest' );
 
                $output = '<form action="" method="get" 
enctype="multipart/form-data" name="gift">' .
                        Html::hidden( 'title', $this->getPageTitle() ) .
@@ -281,7 +282,7 @@
                                $this->msg( 'g-give-enter-friend-title' 
)->plain() .
                        '</div>
                        <div class="g-give-textbox">
-                               <input type="text" width="85" name="user" 
value="" />
+                               <input type="text" width="85" name="user" 
class="mw-user-autocomplete" value="" />
                                <input class="site-button" type="button" 
value="' . $this->msg( 'g-give-gift' )->plain() . '" 
onclick="document.gift.submit()" />
                        </div>
                        </div>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9a0d7eb12e937ae5c8e343378d6a40ae8ad54a7f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to