Jump to content

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

getting here?
(do we need mediawiki.util and the .then syntax?)
(getting here?)
Line 178: Line 178:
                   mw.loader.using( ['mediawiki.util', 'mw.toolbar']).then(function () {
                   mw.loader.using( ['mediawiki.util', 'mw.toolbar']).then(function () {
                     $(function(){
                     $(function(){
alert("Collecting standard buttons.");
// 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
Line 189: Line 190:


// Build the new buttons
// Build the new buttons
alert("Building buttons.");
alert("Building new button array.");
for (i = 0; i < XEBOrder2.length; i++) {
for (i = 0; i < XEBOrder2.length; i++) {
bc = BDict[XEBOrder2[i]];
bc = BDict[XEBOrder2[i]];