Index: branches/5.1.x/core/admin_templates/js/toolbar.js =================================================================== diff -u -N -r12127 -r13086 --- branches/5.1.x/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 12127) +++ branches/5.1.x/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 13086) @@ -231,9 +231,10 @@ /* ----------- */ -function ToolBarSeparator(title) //extends ToolBarButton +function ToolBarSeparator(title, $hidden) //extends ToolBarButton { this.Title = title; + this.Hidden = $hidden ? true : false; this.Separator = true; } ToolBarSeparator.prototype = new ToolBarButton; @@ -252,6 +253,10 @@ this.Container = document.getElementById(this.GetToolID('div')) ? document.getElementById(this.GetToolID('div')) : false; this.imgObject = img; img.btn = this; + + if (this.Hidden) { + this.Hide(); + } } ToolBarSeparator.prototype.Enable = function() { }