Jump to content

MediaWiki:Common.js/edit.js: Difference between revisions

testing for mw.toolbar
(do we need this extra function()?)
(testing for mw.toolbar)
Line 175: Line 175:
} );
} );
} else {
} else {
    alert("Using classic toolbar.");
    if (mw.toolbar) {alert("mw.toolbar already loaded.");}
                     mw.loader.using( ['mediawiki.util', 'mw.toolbar']).then(function () {
                     mw.loader.using( 'mw.toolbar', function () {
alert("Collecting standard buttons.");
if (mw.toolbar) {alert("mw.toolbar just loaded.");}
// Use the old edit toolbar
// Use the old edit toolbar
// Add the MediaWiki standard buttons into the available buttons
// Add the MediaWiki standard buttons into the available buttons