MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions
Content deleted Content added
Remove fixes for bugs 21604 (spellcheck) and 23241 (license display during update image) |
Replace deprecated wikibits functions |
||
Line 105:
* See also [[bugzilla:8912]].
*/
if (document.___location.search.indexOf("undo=") != -1 && document.getElementsByName('wpAutoSummary')[0]) {
document.getElementsByName('wpAutoSummary')[0].value='1';
Line 136:
//Prevent the static edittools from flashing before the compact edittools below is loaded.
addOnloadHook(function () {
Line 142:
var placeholder = document.getElementById("editpage-specialchars");
if (!placeholder || window.noDefaultEdittools) {
//Show the static edittools again for users with "window.noDefaultEdittools=true".
return;
}
var match = /(?:^| )edittools-version-(\d+)(?: |$)/.exec(placeholder.className);
Line 173:
importScriptURI("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript");
} else {
importScriptURI('http://en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript');
}
if( typeof $.wikiEditor != 'undefined' && typeof $.wikiEditor.modules.dialogs != 'undefined' ) {
|