From: PiRSquared17 Date: Wed, 14 May 2014 20:32:53 +0000 (+0000) Subject: SpecialWhatlinkshere: Add autocompletion for target input X-Git-Tag: 1.31.0-rc.0~13672^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=258808ff8a84e06edc8053757230658ecfc05663;p=lhc%2Fweb%2Fwiklou.git SpecialWhatlinkshere: Add autocompletion for target input This adds the mw-searchInput class so suggestions are given by mediawiki.searchSuggest (if loaded by the skin). Bug: 65209 Change-Id: If4ae687ba125c002eedce114820a271cf615011b --- diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 7dc6da1f70..e373cfffb6 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -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 .= ' ';