User:MarkS/extraeditbuttons.js: Difference between revisions

Content deleted Content added
MarkS (talk | contribs)
Promote dev code to live
MarkS (talk | contribs)
m Copy of dev code - see XEB page for more info
Line 108:
 
var bc,d;
 
for (b in BDict) BDict[b][0] = Isrc+BDict[b][0]; // // Add the start of the URL (Isrc) to the XEB buttons
// If the user has defined any buttons then add them into the available button lists
Line 117 ⟶ 116:
 
for (b in mwEditButtons) { // add standard buttons for full XEB order changing
//bug(mwEditButtons[1].imageFile);
BDict[b]=[];
 
for (d in mwEditButtons[b]) BDict[b].push(mwEditButtons[b][d]);
// BDict[b]=[];
BDict[b]=[mwEditButtons[b].imageFile,mwEditButtons[b].speedTip,mwEditButtons[b].tagOpen,mwEditButtons[b].tagClose,mwEditButtons[b].sampleText];
 
// for (d in mwEditButtons[b]) BDict[b].push(mwEditButtons[b][d]);
}
 
Line 131 ⟶ 134:
if(typeof bc=='object')
{
//bug(bc[0]);
//Call addCustomButton in wikibits
addCustomButton(bc[0],bc[1],bc[2],bc[3],bc[4]);
}