r69857 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69856‎ | r69857 | r69858 >
Date:23:28, 24 July 2010
Author:platonides
Status:ok
Tags:
Comment:
Revert r69856. This was intended for trunk.
Modified paths:
  • /branches/REL1_15/phase3/skins/common/edit.js (modified) (history)

Diff [purge]

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
34 function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) {
45 // Don't generate buttons for browsers which don't fully
56 // support it.
@@ -11,7 +12,8 @@
1213 "sampleText": sampleText};
1314 }
1415
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
1618 function mwInsertEditButton(parent, item) {
1719 var image = document.createElement("img");
1820 image.width = 23;
@@ -32,8 +34,6 @@
3335 return true;
3436 }
3537
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
3838 function mwSetupToolbar() {
3939 var toolbar = document.getElementById('toolbar');
4040 if (!toolbar) { return false; }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69856Fix the function comments. This used to be right until r13689....platonides23:21, 24 July 2010

Status & tagging log