From: Southparkfan Date: Thu, 27 Aug 2015 16:13:37 +0000 (+0200) Subject: Enable autocompletion for Special:ComparePages X-Git-Tag: 1.31.0-rc.0~10242 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=8c32adf32301b3c52c66747993f4612c705be539;p=lhc%2Fweb%2Fwiklou.git Enable autocompletion for Special:ComparePages Bug: T26235 Change-Id: Ia55ff14ceeef4eb49facd42a71c6330dd3384eb8 --- diff --git a/CREDITS b/CREDITS index 5362286402..44adc4ffb9 100644 --- a/CREDITS +++ b/CREDITS @@ -230,6 +230,7 @@ following names for their contribution to the product. * Simon Walker * Solitarius * Søren Løvborg +* Southparkfan * Srikanth Lakshmanan * Stefano Codari * Str4nd diff --git a/includes/specials/SpecialComparePages.php b/includes/specials/SpecialComparePages.php index da1a54cd04..0f8b7291b1 100644 --- a/includes/specials/SpecialComparePages.php +++ b/includes/specials/SpecialComparePages.php @@ -50,10 +50,12 @@ class SpecialComparePages extends SpecialPage { $this->setHeaders(); $this->outputHeader(); + # Form (.mw-searchInput enables suggestions) $form = new HTMLForm( array( 'Page1' => array( 'type' => 'text', 'name' => 'page1', + 'cssclass' => 'mw-searchInput', 'label-message' => 'compare-page1', 'size' => '40', 'section' => 'page1', @@ -70,6 +72,7 @@ class SpecialComparePages extends SpecialPage { 'Page2' => array( 'type' => 'text', 'name' => 'page2', + 'cssclass' => 'mw-searchInput', 'label-message' => 'compare-page2', 'size' => '40', 'section' => 'page2',