Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -634,6 +634,7 @@ |
635 | 635 | " " . |
636 | 636 | $searchField . |
637 | 637 | " " . |
| 638 | + Xml::hidden( 'fulltext', 'Advanced search' ) . "\n" . |
638 | 639 | $searchButton . |
639 | 640 | "</div>". |
640 | 641 | "</form>"; |
— | — | @@ -765,6 +766,7 @@ |
766 | 767 | $out .= Xml::hidden( "redirs", (int)$this->searchRedirects ); |
767 | 768 | // Term box |
768 | 769 | $out .= Xml::input( 'search', 50, $term, array( 'type' => 'text', 'id' => 'searchText' ) ) . "\n"; |
| 770 | + $out .= Xml::hidden( 'fulltext', 'Search' ); |
769 | 771 | $out .= Xml::submitButton( wfMsg( 'searchbutton' ), array( 'name' => 'fulltext' ) ); |
770 | 772 | $out .= ' (' . wfMsgExt('searchmenu-help',array('parseinline') ) . ')'; |
771 | 773 | $out .= Xml::closeElement( 'form' ); |
— | — | @@ -1430,10 +1432,11 @@ |
1431 | 1433 | $searchField = Xml::input( 'search', 50, $term, array( 'type' => 'text', 'id' => 'powerSearchText' ) ); |
1432 | 1434 | $searchButton = Xml::submitButton( wfMsg( 'powersearch' ), array( 'name' => 'fulltext' ) ) . "\n"; |
1433 | 1435 | $searchTitle = SpecialPage::getTitleFor( 'Search' ); |
| 1436 | + $searchHiddens = Xml::hidden( 'title', $searchTitle->getPrefixedText() ) . "\n"; |
| 1437 | + $searchHiddens .= Xml::hidden( 'fulltext', 'Advanced search' ) . "\n"; |
1434 | 1438 | |
1435 | 1439 | $out = Xml::openElement( 'form', array( 'id' => 'powersearch', 'method' => 'get', 'action' => $wgScript ) ) . |
1436 | | - Xml::fieldset( wfMsg( 'powersearch-legend' ), |
1437 | | - Xml::hidden( 'title', $searchTitle->getPrefixedText() ) . "\n" . |
| 1440 | + Xml::fieldset( wfMsg( 'powersearch-legend' ), |
1438 | 1441 | "<p>" . |
1439 | 1442 | wfMsgExt( 'powersearch-ns', array( 'parseinline' ) ) . |
1440 | 1443 | "</p>\n" . |
— | — | @@ -1446,6 +1449,7 @@ |
1447 | 1450 | " " . |
1448 | 1451 | $searchField . |
1449 | 1452 | " " . |
| 1453 | + $searchHiddens . |
1450 | 1454 | $searchButton ) . |
1451 | 1455 | "</form>"; |
1452 | 1456 | |
— | — | @@ -1470,13 +1474,14 @@ |
1471 | 1475 | 'action' => $wgScript |
1472 | 1476 | )); |
1473 | 1477 | $searchTitle = SpecialPage::getTitleFor( 'Search' ); |
1474 | | - $out .= Xml::hidden( 'title', $searchTitle->getPrefixedText() ); |
1475 | 1478 | $out .= Xml::input( 'search', 50, $term, array( 'type' => 'text', 'id' => 'searchText' ) ) . ' '; |
1476 | 1479 | foreach( SearchEngine::searchableNamespaces() as $ns => $name ) { |
1477 | 1480 | if( in_array( $ns, $this->namespaces ) ) { |
1478 | 1481 | $out .= Xml::hidden( "ns{$ns}", '1' ); |
1479 | 1482 | } |
1480 | 1483 | } |
| 1484 | + $out .= Xml::hidden( 'title', $searchTitle->getPrefixedText() ); |
| 1485 | + $out .= Xml::hidden( 'fulltext', 'Search' ); |
1481 | 1486 | $out .= Xml::submitButton( wfMsg( 'searchbutton' ), array( 'name' => 'fulltext' ) ); |
1482 | 1487 | $out .= Xml::closeElement( 'form' ); |
1483 | 1488 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -207,6 +207,8 @@ |
208 | 208 | changed to rc_timestamp_bot |
209 | 209 | * (bug 17437) Fixed incorrect link to web-based installer |
210 | 210 | * (bug 17538) Use shorter URLs in <link> elements |
| 211 | +* (bug 13778) Hidden input added to the search form so that using the Enter key |
| 212 | + on IE will do a fulltext search like clicking the button does |
211 | 213 | |
212 | 214 | == API changes in 1.15 == |
213 | 215 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |