Index: trunk/kernel/admin_templates/incs/toolbar.js =================================================================== diff -u -r3664 -r5005 --- trunk/kernel/admin_templates/incs/toolbar.js (.../toolbar.js) (revision 3664) +++ trunk/kernel/admin_templates/incs/toolbar.js (.../toolbar.js) (revision 5005) @@ -143,6 +143,8 @@ img.btn = this; } +ToolBarSeparator.prototype.Enable = function() { } +ToolBarSeparator.prototype.Disable = function() { } /* ----------- */ @@ -188,6 +190,14 @@ if(this.ButtonExists(button_id)) this.Buttons[button_id].Show(); } +ToolBar.prototype.SetEnabled = function(button_id, $enabled) { + var $ret = $enabled ? this.EnableButton(button_id) : this.DisableButton(button_id); +} + +ToolBar.prototype.SetVisible = function(button_id, $visible) { + var $ret = $visible ? this.ShowButton(button_id) : this.HideButton(button_id); +} + ToolBar.prototype.GetButtonImage = function(button_id) { if( this.ButtonExists(button_id) ) return this.Buttons[button_id].imgObject; }