Gerrit Patch Uploader has uploaded a new change for review.

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

Change subject: Add autocomplete to Recentchangeslinked
......................................................................

Add autocomplete to Recentchangeslinked

* Adds autocomplete to the target input box
* Adds search autocomplete

Change-Id: I9e7461e2947153f45f85616c72a299d9d518c81c
---
M includes/specials/SpecialRecentchangeslinked.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/92/175192/1

diff --git a/includes/specials/SpecialRecentchangeslinked.php 
b/includes/specials/SpecialRecentchangeslinked.php
index 3ad9f0f..75a4191 100644
--- a/includes/specials/SpecialRecentchangeslinked.php
+++ b/includes/specials/SpecialRecentchangeslinked.php
@@ -240,7 +240,7 @@
                $opts->consumeValues( array( 'showlinkedto', 'target' ) );
 
                $extraOpts['target'] = array( $this->msg( 
'recentchangeslinked-page' )->escaped(),
-                       Xml::input( 'target', 40, str_replace( '_', ' ', 
$opts['target'] ) ) .
+                       Xml::input( 'target', 40, str_replace( '_', ' ', 
$opts['target'] ), array( 'class' => 'mw-searchInput' ) ) .
                        Xml::check( 'showlinkedto', $opts['showlinkedto'], 
array( 'id' => 'showlinkedto' ) ) . ' ' .
                        Xml::label( $this->msg( 'recentchangeslinked-to' 
)->text(), 'showlinkedto' ) );
 
@@ -262,4 +262,8 @@
 
                return $this->rclTargetTitle;
        }
+
+       public function prefixSearchSubpages( $search, $limit = 10 ) {
+               return PrefixSearch::titleSearch( $search, $limit );
+       }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9e7461e2947153f45f85616c72a299d9d518c81c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <[email protected]>
Gerrit-Reviewer: Gerrit Patch Uploader <[email protected]>

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

Reply via email to