Index: trunk/extensions/Vector/modules/ext.vector.simpleSearch.js |
— | — | @@ -1,11 +1,5 @@ |
2 | 2 | /* JavaScript for SimpleSearch extension */ |
3 | 3 | |
4 | | -// XXX: Disable mwsuggest.js's effect on searchInput |
5 | | -if ( typeof os_autoload_inputs !== 'undefined' && os_autoload_forms !== 'undefined' ) { |
6 | | - os_autoload_inputs = []; |
7 | | - os_autoload_forms = []; |
8 | | -} |
9 | | - |
10 | 4 | $( document ).ready( function() { |
11 | 5 | |
12 | 6 | // Compatibility map |
— | — | @@ -34,6 +28,11 @@ |
35 | 29 | return true; |
36 | 30 | } |
37 | 31 | |
| 32 | + // Disable MWSuggest if loaded |
| 33 | + if ( window.os_MWSuggestDisable ) { |
| 34 | + window.os_MWSuggestDisable(); |
| 35 | + } |
| 36 | + |
38 | 37 | // Placeholder text for SimpleSearch box |
39 | 38 | $( 'div#simpleSearch > input#searchInput' ) |
40 | 39 | .attr( 'placeholder', mediaWiki.msg( 'vector-simplesearch-search' ) ) |