Update function comments to r13689. This time on trunk.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 24 Jul 2010 23:30:08 +0000 (23:30 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 24 Jul 2010 23:30:08 +0000 (23:30 +0000)
skins/common/edit.js

index 3f8c862..5d30844 100644 (file)
@@ -1,7 +1,6 @@
 var currentFocused;
 
-// this function generates the actual toolbar buttons with localized text
-// we use it to avoid creating the toolbar where javascript is not enabled
+// this function adds a toolbar button to the mwEditButtons list
 function addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId ) {
        // Don't generate buttons for browsers which don't fully
        // support it.
@@ -15,8 +14,7 @@ function addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId
        });
 }
 
-// this function generates the actual toolbar buttons with localized text
-// we use it to avoid creating the toolbar where JavaScript is not enabled
+// this function adds one toolbar button from a mwEditButtons/mwCustomEditButtons item
 function mwInsertEditButton( parent, item ) {
        var image = document.createElement( 'img' );
        image.width = 23;
@@ -43,6 +41,8 @@ function mwInsertEditButton( parent, item ) {
        return true;
 }
 
+// this function generates the actual toolbar buttons with localized text
+// we use it to avoid creating the toolbar where javascript is not enabled
 function mwSetupToolbar() {
        var toolbar = document.getElementById( 'toolbar' );
        if ( !toolbar ) {