Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -811,9 +811,10 @@ |
812 | 812 | } |
813 | 813 | |
814 | 814 | protected function searchFocus() { |
| 815 | + $id = $this->searchAdvanced ? 'powerSearchText' : 'searchText'; |
815 | 816 | return Html::inlineScript( |
816 | 817 | "hookEvent(\"load\", function() {" . |
817 | | - "document.getElementById('searchText').focus();" . |
| 818 | + "document.getElementById('$id').focus();" . |
818 | 819 | "});" ); |
819 | 820 | } |
820 | 821 | |
— | — | @@ -943,7 +944,7 @@ |
944 | 945 | $out .= Html::hidden( "redirs", (int)$this->searchRedirects ) . "\n"; |
945 | 946 | // Term box |
946 | 947 | $out .= Html::input( 'search', $term, 'search', array( |
947 | | - 'id' => 'searchText', |
| 948 | + 'id' => $this->searchAdvanced ? 'powerSearchText' : 'searchText', |
948 | 949 | 'size' => '50', |
949 | 950 | 'autofocus' |
950 | 951 | ) ) . "\n"; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -683,6 +683,7 @@ |
684 | 684 | groups if there are duplicate entries |
685 | 685 | * (bug 21814) Message shown when rolling back an edit with a deleted username |
686 | 686 | now shows '(username deleted)' instead of broken user tool links |
| 687 | +* (bug 21536) Fixed JavaScript error on Special:Search caused by an incorrect ID |
687 | 688 | |
688 | 689 | == API changes in 1.16 == |
689 | 690 | |