r69858 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69857‎ | r69858 | r69859 >
Date:23:30, 24 July 2010
Author:platonides
Status:ok
Tags:
Comment:
Update function comments to r13689. This time on trunk.
Modified paths:
  • /trunk/phase3/skins/common/edit.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/edit.js
@@ -1,7 +1,6 @@
22 var currentFocused;
33
4 -// this function generates the actual toolbar buttons with localized text
5 -// we use it to avoid creating the toolbar where javascript is not enabled
 4+// this function adds a toolbar button to the mwEditButtons list
65 function addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId ) {
76 // Don't generate buttons for browsers which don't fully
87 // support it.
@@ -15,8 +14,7 @@
1615 });
1716 }
1817
19 -// this function generates the actual toolbar buttons with localized text
20 -// we use it to avoid creating the toolbar where JavaScript is not enabled
 18+// this function adds one toolbar button from a mwEditButtons/mwCustomEditButtons item
2119 function mwInsertEditButton( parent, item ) {
2220 var image = document.createElement( 'img' );
2321 image.width = 23;
@@ -43,6 +41,8 @@
4442 return true;
4543 }
4644
 45+// this function generates the actual toolbar buttons with localized text
 46+// we use it to avoid creating the toolbar where javascript is not enabled
4747 function mwSetupToolbar() {
4848 var toolbar = document.getElementById( 'toolbar' );
4949 if ( !toolbar ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r13689* (bug 4663) Edit toolbar enabled in compatible versions of Safari...brion10:36, 17 April 2006

Status & tagging log