Enable autocompletion for Special:ComparePages
authorSouthparkfan <southparkfan223@hotmail.com>
Thu, 27 Aug 2015 16:13:37 +0000 (18:13 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 27 Aug 2015 18:08:28 +0000 (18:08 +0000)
Bug: T26235
Change-Id: Ia55ff14ceeef4eb49facd42a71c6330dd3384eb8

CREDITS
includes/specials/SpecialComparePages.php

diff --git a/CREDITS b/CREDITS
index 5362286..44adc4f 100644 (file)
--- 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
index da1a54c..0f8b729 100644 (file)
@@ -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',