Index: branches/REL1_15/phase3/skins/common/edit.js |
— | — | @@ -1,5 +1,4 @@ |
2 | | -// this function generates the actual toolbar buttons with localized text |
3 | | -// we use it to avoid creating the toolbar where javascript is not enabled |
| 2 | +// this function adds a toolbar button to the mwEditButtons list |
4 | 3 | function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) { |
5 | 4 | // Don't generate buttons for browsers which don't fully |
6 | 5 | // support it. |
— | — | @@ -12,8 +11,7 @@ |
13 | 12 | "sampleText": sampleText}; |
14 | 13 | } |
15 | 14 | |
16 | | -// this function generates the actual toolbar buttons with localized text |
17 | | -// we use it to avoid creating the toolbar where javascript is not enabled |
| 15 | +// this function adds one toolbar butto from a mwEditButtons/mwCustomEditButtons item |
18 | 16 | function mwInsertEditButton(parent, item) { |
19 | 17 | var image = document.createElement("img"); |
20 | 18 | image.width = 23; |
— | — | @@ -34,6 +32,8 @@ |
35 | 33 | return true; |
36 | 34 | } |
37 | 35 | |
| 36 | +// this function generates the actual toolbar buttons with localized text |
| 37 | +// we use it to avoid creating the toolbar where javascript is not enabled |
38 | 38 | function mwSetupToolbar() { |
39 | 39 | var toolbar = document.getElementById('toolbar'); |
40 | 40 | if (!toolbar) { return false; } |