From: Platonides Date: Sat, 24 Jul 2010 23:30:08 +0000 (+0000) Subject: Update function comments to r13689. This time on trunk. X-Git-Tag: 1.31.0-rc.0~35962 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=c6276caeaee2ed5dce6071719ac281eca1090feb;p=lhc%2Fweb%2Fwiklou.git Update function comments to r13689. This time on trunk. --- diff --git a/skins/common/edit.js b/skins/common/edit.js index 3f8c8624cf..5d30844f65 100644 --- a/skins/common/edit.js +++ b/skins/common/edit.js @@ -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 ) {