SpecialWhatlinkshere: Add autocompletion for target input
authorPiRSquared17 <gerritpatchuploader@gmail.com>
Wed, 14 May 2014 20:32:53 +0000 (20:32 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 6 Oct 2014 18:59:18 +0000 (20:59 +0200)
This adds the mw-searchInput class so suggestions are given by
mediawiki.searchSuggest (if loaded by the skin).

Bug: 65209
Change-Id: If4ae687ba125c002eedce114820a271cf615011b

includes/specials/SpecialWhatlinkshere.php

index 7dc6da1..e373cff 100644 (file)
@@ -431,9 +431,9 @@ class SpecialWhatLinksHere extends IncludableSpecialPage {
 
                $f .= Xml::fieldset( $this->msg( 'whatlinkshere' )->text() );
 
-               # Target input
+               # Target input (.mw-searchInput enables suggestions)
                $f .= Xml::inputLabel( $this->msg( 'whatlinkshere-page' )->text(), 'target',
-                       'mw-whatlinkshere-target', 40, $target );
+                       'mw-whatlinkshere-target', 40, $target, array( 'class' => 'mw-searchInput' ) );
 
                $f .= ' ';