http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56208
Revision: 56208
Author: catrope
Date: 2009-09-11 21:03:54 +0000 (Fri, 11 Sep 2009)
Log Message:
-----------
Make os_disableSuggestionsOn() work also when called before mwsuggest.js has
even done its initialization
Modified Paths:
--------------
trunk/phase3/includes/DefaultSettings.php
trunk/phase3/skins/common/mwsuggest.js
Modified: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php 2009-09-11 21:01:50 UTC (rev
56207)
+++ trunk/phase3/includes/DefaultSettings.php 2009-09-11 21:03:54 UTC (rev
56208)
@@ -1591,7 +1591,7 @@
* to ensure that client-side caches do not keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '239';
+$wgStyleVersion = '240';
# Server-side caching:
Modified: trunk/phase3/skins/common/mwsuggest.js
===================================================================
--- trunk/phase3/skins/common/mwsuggest.js 2009-09-11 21:01:50 UTC (rev
56207)
+++ trunk/phase3/skins/common/mwsuggest.js 2009-09-11 21:03:54 UTC (rev
56208)
@@ -840,6 +840,11 @@
// remove descriptor
os_map[inputId] = null;
}
+
+ // Remove the element from the os_autoload_* arrays
+ var index = os_autoload_inputs.indexOf(inputId);
+ if ( index >= 0 )
+ os_autoload_inputs[index] = os_autoload_forms[index] = '';
}
/** Initialization, call upon page onload */
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs