r82130 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82129‎ | r82130 | r82131 >
Date:19:55, 14 February 2011
Author:catrope
Status:ok
Tags:
Comment:
(Bug 27402) Disable MWSuggest when SimpleSearch is enabled. Requires MWSuggest changes in r82129
Modified paths:
  • /trunk/extensions/Vector/modules/ext.vector.simpleSearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Vector/modules/ext.vector.simpleSearch.js
@@ -1,11 +1,5 @@
22 /* JavaScript for SimpleSearch extension */
33
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 -
104 $( document ).ready( function() {
115
126 // Compatibility map
@@ -34,6 +28,11 @@
3529 return true;
3630 }
3731
 32+ // Disable MWSuggest if loaded
 33+ if ( window.os_MWSuggestDisable ) {
 34+ window.os_MWSuggestDisable();
 35+ }
 36+
3837 // Placeholder text for SimpleSearch box
3938 $( 'div#simpleSearch > input#searchInput' )
4039 .attr( 'placeholder', mediaWiki.msg( 'vector-simplesearch-search' ) )

Follow-up revisions

RevisionCommit summaryAuthorDate
r821511.17wmf1: MFT r78964, r79086, r79087, r79091, r82004, r82025, r82048, r82070,...catrope22:55, 14 February 2011
r85027MFT various extension fixes: r81713, r81742, r81743, r81908, r81966, r81969, ...demon18:23, 30 March 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82129(bug 27402) Add support for disabling MWSuggestcatrope19:55, 14 February 2011

Status & tagging log