From 258808ff8a84e06edc8053757230658ecfc05663 Mon Sep 17 00:00:00 2001 From: PiRSquared17 Date: Wed, 14 May 2014 20:32:53 +0000 Subject: [PATCH] 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 --- includes/specials/SpecialWhatlinkshere.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 .= ' '; -- 2.20.1