Index: trunk/kernel/admin_templates/incs/toolbar.js =================================================================== diff -u -r5005 -r5009 --- trunk/kernel/admin_templates/incs/toolbar.js (.../toolbar.js) (revision 5005) +++ trunk/kernel/admin_templates/incs/toolbar.js (.../toolbar.js) (revision 5009) @@ -1,4 +1,4 @@ -function ToolBarButton(title, alt, onclick) +function ToolBarButton(title, alt, onclick, $hidden) { this.Title = title || ''; this.CheckTitleModule(); @@ -17,7 +17,7 @@ this.imgObject = null; this.Enabled = true; - this.Hidden = false; + this.Hidden = $hidden ? true : false; this.ToolBar = null; } @@ -32,7 +32,9 @@ ToolBarButton.prototype.IconsPath = function() { - if( !isset(img_path) ) alert('img path not set'); + if (!img_path) { + alert('error: toolbar image path not set'); + } return img_path + this.Module + 'toolbar/'; } @@ -47,6 +49,7 @@ this.SetOnMouseOver(); this.SetOnMouseOut(); this.SetOnClick(); + if (this.Hidden) this.Hide(); } ToolBarButton.prototype.SetOnMouseOver = function() { @@ -88,11 +91,10 @@ // do not change the order of these lines! if (is.ie6up || is.gecko) { this.imgObject.style.cursor = 'pointer'; - this.imgObject.style.cursor = 'hand'; } else { // somehow set cursor hand for IE 5/ 5.5 - //this.imgObject.style = 'cursor: hand'; +// this.imgObject.style = 'cursor: hand'; } }