MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions

Content deleted Content added
instructions to disable
m formatting indents (no code change)
Line 101:
 
 
//** fix edit summary prompt for undo ******************************************
// * this code fixes the fact that the undo function combined with the "no edit summary prompter" causes problems if leaving the
// * edit summary unchanged
// * this was added by [[User:Deskana]], code by [[User:Tra]]
// * see bug 8912
*/
addOnloadHook(function () {
if (document.___location.search.indexOf("undo=") != -1
Line 111 ⟶ 112:
document.getElementsByName('wpAutoSummary')[0].value='1';
}
});
 
/** Edittools javascript loader ************************************************
Line 162 ⟶ 163:
// Temporary until [[bugzilla:21604]] is deployed
addOnloadHook( function() {
var wpSummary = document.getElementById( "wpSummary" );
if ( wpSummary && typeof wpSummary.spellcheck != undefined )
wpSummary.spellcheck = true;
} );
 
/* Remove when http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65899 is deployed */
Line 184 ⟶ 185:
function initializeRefTools() {
if ( typeof refToolbarInstalled == 'undefined' ) {
if (wgServer == "https://secure.wikimedia.org") {
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' ) {
importScript('MediaWiki:RefToolbar.js');
} else if( typeof $.wikiEditor != 'undefined' ) {
importScript('MediaWiki:RefToolbarNoDialogs.js');
} else {
importScript('MediaWiki:RefToolbarLegacy.js');
}
refToolbarInstalled = true;
}
}