Index: trunk/phase3/skins/common/search.js |
— | — | @@ -28,13 +28,13 @@ |
29 | 29 | for ( var i = 0; i < nsInputs.length; i++ ) { |
30 | 30 | var pattern = /^ns/; |
31 | 31 | if ( ( nsInputs[i].type == 'checkbox' ) && ( pattern.test( nsInputs[i].name ) ) ) { |
32 | | - switch ( btn.value ) { |
33 | | - case "None": |
| 32 | + switch ( btn ) { |
| 33 | + case "none": |
34 | 34 | if ( nsInputs[i].checked ) { |
35 | 35 | nsInputs[i].checked = false; |
36 | 36 | } |
37 | 37 | break; |
38 | | - case "All": |
| 38 | + case "all": |
39 | 39 | if ( !nsInputs[i].checked ) { |
40 | 40 | nsInputs[i].checked = true; |
41 | 41 | } |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -632,8 +632,12 @@ |
633 | 633 | |
634 | 634 | // toggle for turning on and off all checkboxes |
635 | 635 | $selectOptionsLabel = Xml::label( wfMsg( 'powersearch-togglelabel' ), 'mw-search-togglelabel' ); |
636 | | - $selectAllButton = Xml::submitButton( wfMsg( 'powersearch-toggleall' ), array( 'id' => 'mw-search-toggleall', 'onclick' => 'mwToggleSearchCheckboxes(this);return false;' ) ); |
637 | | - $selectNoneButton = Xml::submitButton( wfMsg( 'powersearch-togglenone' ), array( 'id' => 'mw-search-togglenone', 'onclick' => 'mwToggleSearchCheckboxes(this);return false;' ) ); |
| 636 | + $selectAllButton = Xml::openElement('button', array('type'=>'button', 'id' => 'mw-search-toggleall', 'onclick' => 'mwToggleSearchCheckboxes("all");' )) |
| 637 | + . wfMsg( 'powersearch-toggleall' ) . Xml::closeElement('button'); |
| 638 | + |
| 639 | + $selectNoneButton = Xml::openElement('button', array('type'=>'button', 'id' => 'mw-search-togglenone', 'onclick' => 'mwToggleSearchCheckboxes("none");' )) |
| 640 | + . wfMsg( 'powersearch-togglenone' ) . Xml::closeElement('button'); |
| 641 | + |
638 | 642 | $selectOptionsText = "<td id='mw-search-togglebox'>" . $selectOptionsLabel . $selectAllButton . $selectNoneButton . "</td>"; |
639 | 643 | |
640 | 644 | $searchButton = Xml::submitButton( wfMsg( 'powersearch' ) ) . "\n"; |
— | — | @@ -657,10 +661,6 @@ |
658 | 662 | $searchButton . |
659 | 663 | "</div>". |
660 | 664 | "</form>"; |
661 | | - $t = Title::newFromText( $term ); |
662 | | - /* if( $t != null && count($this->namespaces) === 1 ) { |
663 | | - $out .= wfMsgExt( 'searchmenu-prefix', array('parseinline'), $term ); |
664 | | - } */ |
665 | 665 | return Xml::openElement( 'fieldset', array('id' => 'mw-searchoptions','style' => 'margin:0em;') ) . |
666 | 666 | Xml::element( 'legend', null, wfMsg('powersearch-legend') ) . |
667 | 667 | $out . $this->didYouMeanHtml . |