Jack Phoenix has submitted this change and it was merged. ( 
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(-)

Approvals:
  Jack Phoenix: Verified; Looks good to me, approved



diff --git a/UserGifts/SpecialGiveGift.php b/UserGifts/SpecialGiveGift.php
index a4a8259..5550bd7 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-autocomplete-user" 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: merged
Gerrit-Change-Id: I9a0d7eb12e937ae5c8e343378d6a40ae8ad54a7f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to