* (bug 24401) SimpleSearch: No button/text indicating 'Search' if image is disabled
authorDanny B <danny_b@users.mediawiki.org>
Mon, 19 Jul 2010 10:52:01 +0000 (10:52 +0000)
committerDanny B <danny_b@users.mediawiki.org>
Mon, 19 Jul 2010 10:52:01 +0000 (10:52 +0000)
RELEASE-NOTES
skins/Vector.php
skins/vector/main-ltr.css
skins/vector/main-rtl.css

index 9767f00..f900947 100644 (file)
@@ -242,6 +242,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 24244) Updated comments in DefaultSettings.php to reflect Image: --> File:
   namespace rename.
 * Make wfTimestamp recognize negative unix timestamp values.
+* (bug 24401) SimpleSearch: No button/text indicating 'Search' if image is disabled
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index b638a59..86bed7e 100644 (file)
@@ -771,7 +771,7 @@ class VectorTemplate extends QuickTemplate {
                <?php if ( $wgVectorUseSimpleSearch && $wgUser->getOption( 'vector-simplesearch' ) ): ?>
                <div id="simpleSearch">
                        <input id="searchInput" name="search" type="text" <?php echo $this->skin->tooltipAndAccesskey( 'search' ); ?> <?php if( isset( $this->data['search'] ) ): ?> value="<?php $this->text( 'search' ) ?>"<?php endif; ?> />
-                       <button id="searchButton" type='submit' name='button' <?php echo $this->skin->tooltipAndAccesskey( 'search-fulltext' ); ?>>&#160;</button>
+                       <button id="searchButton" type='submit' name='button' <?php echo $this->skin->tooltipAndAccesskey( 'search-fulltext' ); ?>><img src="<?php echo $wgStylePath . '/vector/search-' . ( $wgContLang->isRTL() ? 'rtl' : 'ltr' ) . '.png?' . $wgStyleVersion ?>" alt="<?php $this->msg( 'searchbutton' ) ?>" /></button>
                </div>
                <?php else: ?>
                <input id="searchInput" name="search" type="text" <?php echo $this->skin->tooltipAndAccesskey( 'search' ); ?> <?php if( isset( $this->data['search'] ) ): ?> value="<?php $this->text( 'search' ) ?>"<?php endif; ?> />
index 0fd42a9..180dc9a 100644 (file)
@@ -383,15 +383,17 @@ div#mw-head h5 {
        /* OVERRIDDEN BY COMPLIANT BROWSERS */
        div#simpleSearch button#searchButton {
                padding: 0;
-               margin: 5px 5px 0 5px;
-               height: 13px;
-               width: 12px;
+               margin: 0 5px;
                border: none;
                cursor: pointer;
                background-color: transparent;
-               background-image: url(images/search-ltr.png?1);
-               background-position: center center;
-               background-repeat: no-repeat;
+               font-size: x-small;
+       }
+       div#simpleSearch button#searchButton img {
+               border: none;
+               margin: 0;
+               padding: 0;
+               vertical-align: middle;
        }
 /* Panel */
 div#mw-panel {
index 32bccf9..22f2ea7 100644 (file)
@@ -383,15 +383,17 @@ div#mw-head h5 {
        /* OVERRIDDEN BY COMPLIANT BROWSERS */
        div#simpleSearch button#searchButton {
                padding: 0;
-               margin: 5px 5px 0 5px;
-               height: 13px;
-               width: 12px;
+               margin: 0 5px;
                border: none;
                cursor: pointer;
                background-color: transparent;
-               background-image: url(images/search-rtl.png?1);
-               background-position: center center;
-               background-repeat: no-repeat;
+               font-size: x-small;
+       }
+       div#simpleSearch button#searchButton img {
+               border: none;
+               margin: 0;
+               padding: 0;
+               vertical-align: middle;
        }
 /* Panel */
 div#mw-panel {