From: Robert Stojnić Date: Sun, 31 May 2009 19:15:17 +0000 (+0000) Subject: Bug 19039: new "(un)select all" buttons misplaced at advanced search form X-Git-Tag: 1.31.0-rc.0~41577 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=f68c16dd322e6d4a7666cc0b8a5ae4cf44c3b3ef;p=lhc%2Fweb%2Fwiklou.git Bug 19039: new "(un)select all" buttons misplaced at advanced search form * put the all/none buttons into upper right corner * use input instead of button --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 814dade3ce..76051a952b 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -623,7 +623,7 @@ class SpecialSearch { $redirectText = ''; // show redirects check only if backend supports it if( $this->searchEngine->acceptListRedirects() ) { - $redirectText = "". $redirect . " " . $redirectLabel .""; + $redirectText = $redirect . " " . $redirectLabel; } @@ -632,29 +632,27 @@ class SpecialSearch { // toggle for turning on and off all checkboxes $selectOptionsLabel = Xml::label( wfMsg( 'powersearch-togglelabel' ), 'mw-search-togglelabel' ); - $selectAllButton = Xml::openElement('button', array('type'=>'button', 'id' => 'mw-search-toggleall', 'onclick' => 'mwToggleSearchCheckboxes("all");' )) - . wfMsg( 'powersearch-toggleall' ) . Xml::closeElement('button'); + $selectAllButton = Xml::openElement('input', array('type'=>'button', 'id' => 'mw-search-toggleall', 'onclick' => 'mwToggleSearchCheckboxes("all");', + 'value' => wfMsg( 'powersearch-toggleall' ) )) . ''; - $selectNoneButton = Xml::openElement('button', array('type'=>'button', 'id' => 'mw-search-togglenone', 'onclick' => 'mwToggleSearchCheckboxes("none");' )) - . wfMsg( 'powersearch-togglenone' ) . Xml::closeElement('button'); + $selectNoneButton = Xml::openElement('input', array('type'=>'button', 'id' => 'mw-search-togglenone', 'onclick' => 'mwToggleSearchCheckboxes("none");', + 'value' => wfMsg( 'powersearch-togglenone' ) )) . ''; - $selectOptionsText = "" . $selectOptionsLabel . $selectAllButton . $selectNoneButton . ""; + $selectOptionsText = "" . $selectOptionsLabel . $selectAllButton . $selectNoneButton . ""; $searchButton = Xml::submitButton( wfMsg( 'powersearch' ) ) . "\n"; $searchTitle = SpecialPage::getTitleFor( 'Search' ); - $optionsText = "
" . $redirectText . $selectOptionsText . "
"; + $topText = "' . $selectOptionsText . "
" . wfMsgExt( 'powersearch-ns', array( 'parseinline' ) ). '
"; $out = Xml::openElement( 'form', array( 'id' => 'powersearch', 'method' => 'get', 'action' => $wgScript ) ) . Xml::hidden( 'title', $searchTitle->getPrefixedText() ) . "\n" . - "

" . - wfMsgExt( 'powersearch-ns', array( 'parseinline' ) ) . - "

\n" . + $topText . '\n". $tables . "
\n". - $optionsText . "\n". - "
". + $redirectText . "\n". + "
". $searchField . " " . Xml::hidden( 'fulltext', 'Advanced search' ) . "\n" . diff --git a/skins/common/shared.css b/skins/common/shared.css index d4cbbd1994..c1af0d17c0 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -222,12 +222,8 @@ td#mw-search-togglebox { text-align: right; } -div#mw-search-redirbox { - width:100%; -} - -table#mw-search-redirtable { - width:95%; +table#mw-search-powertable { + width:100%; }