From 8c32adf32301b3c52c66747993f4612c705be539 Mon Sep 17 00:00:00 2001 From: Southparkfan Date: Thu, 27 Aug 2015 18:13:37 +0200 Subject: [PATCH] Enable autocompletion for Special:ComparePages Bug: T26235 Change-Id: Ia55ff14ceeef4eb49facd42a71c6330dd3384eb8 --- CREDITS | 1 + includes/specials/SpecialComparePages.php | 3 +++ 2 files changed, 4 insertions(+) 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', -- 2.20.1