From: Aaron Schulz Date: Thu, 11 Dec 2008 19:52:56 +0000 (+0000) Subject: Set focus X-Git-Tag: 1.31.0-rc.0~44034 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=3fcbdecef0b18ca92bfa4a26417fdb270173b50c;p=lhc%2Fweb%2Fwiklou.git Set focus --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 8091063809..5d0f1a7011 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -619,11 +619,21 @@ class SpecialSearch { if( $t != null && count($this->namespaces) === 1 ) { $out .= wfMsgExt( 'searchmenu-prefix', array('parseinline'), $term ); } - return Xml::openElement( 'fieldset', array('id' => 'mw-searchoptions','style' => 'margin:0em;') ) . + return $this->powerSearchFocus() . + Xml::openElement( 'fieldset', array('id' => 'mw-searchoptions','style' => 'margin:0em;') ) . Xml::element( 'legend', null, wfMsg('powersearch-legend') ) . $this->formHeader($term) . $out . Xml::closeElement( 'fieldset' ); } + + protected function searchFocus() { + global $wgJsMimeType; + return ""; + } protected function powerSearchFocus() { global $wgJsMimeType; @@ -714,7 +724,8 @@ class SpecialSearch { global $wgScript; $searchTitle = SpecialPage::getTitleFor( 'Search' ); $searchable = SearchEngine::searchableNamespaces(); - $out = Xml::openElement( 'form', array( 'id' => 'search', 'method' => 'get', 'action' => $wgScript ) ); + $out = $this->searchFocus(); + $out .= Xml::openElement( 'form', array( 'id' => 'search', 'method' => 'get', 'action' => $wgScript ) ); $out .= Xml::hidden( 'title', $searchTitle->getPrefixedText() ) . "\n"; // If searching several, but not all namespaces, show what we are searching. if( count($this->namespaces) > 1 && $this->namespaces !== array_keys($searchable) ) {