19,809
edits
(do we need this extra function()?) |
(testing for mw.toolbar) |
||
| Line 175: | Line 175: | ||
} ); | } ); | ||
} else { | } else { | ||
alert(" | if (mw.toolbar) {alert("mw.toolbar already loaded.");} | ||
mw.loader.using( | mw.loader.using( 'mw.toolbar', function () { | ||
alert(" | 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 | ||