Index: branches/REL1_15/phase3/skins/common/edit.js |
— | — | @@ -1,4 +1,5 @@ |
2 | | -// this function adds a toolbar button to the mwEditButtons list |
| 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 |
3 | 4 | function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) { |
4 | 5 | // Don't generate buttons for browsers which don't fully |
5 | 6 | // support it. |
— | — | @@ -11,7 +12,8 @@ |
12 | 13 | "sampleText": sampleText}; |
13 | 14 | } |
14 | 15 | |
15 | | -// this function adds one toolbar butto from a mwEditButtons/mwCustomEditButtons item |
| 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 |
16 | 18 | function mwInsertEditButton(parent, item) { |
17 | 19 | var image = document.createElement("img"); |
18 | 20 | image.width = 23; |
— | — | @@ -32,8 +34,6 @@ |
33 | 35 | return true; |
34 | 36 | } |
35 | 37 | |
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; } |