r47840 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47839‎ | r47840 | r47841 >
Date:20:15, 26 February 2009
Author:aaron
Status:ok (Comments)
Tags:
Comment:
(bug 17161) Make 'enter' work right on IE for fulltext type
Modified paths:
  • /trunk/extensions/InputBox/InputBox.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InputBox/InputBox.classes.php
@@ -158,7 +158,7 @@
159159
160160 // Line break
161161 $htmlOut .= $this->mBR;
162 - } else if( $type == 'search') {
 162+ } else if( $type == 'search' ) {
163163 // Go button
164164 $htmlOut .= Xml::element( 'input',
165165 array(
@@ -180,6 +180,12 @@
181181 'value' => $this->mSearchButtonLabel
182182 )
183183 );
 184+
 185+ // Hidden fulltext param for IE (bug 17161)
 186+ if( $type == 'fulltext' ) {
 187+ $htmlOut .= Xml::hidden( 'fulltext', 'Search' );
 188+ }
 189+
184190 $htmlOut .= Xml::closeElement( 'form' );
185191 $htmlOut .= Xml::closeElement( 'div' );
186192

Comments

#Comment by Brion VIBBER (talk | contribs)   08:14, 25 March 2009

woohoo!

Status & tagging log