Index: branches/5.0.x/core/admin_templates/js/toolbar.js =================================================================== diff -u -N -r13246 -r13373 --- branches/5.0.x/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 13246) +++ branches/5.0.x/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 13373) @@ -94,6 +94,9 @@ this.SetOnRightClick() if (this.Hidden) this.Hide(); + // all buttons are disabled until page is fully loaded! + this.Disable(); + if (!img.complete) { var real_path = img_path.replace('#MODULE#', this.Module) + 'toolbar/'; var old_path = img_path.replace('#MODULE#', 'kernel') + 'toolbar/'+this.ToolBar.IconPrefix + this.Title+'.gif'; @@ -343,6 +346,16 @@ btn.Init(); } } + + var $me = this; + + $(document).ready( + function () { + for (var $button_name in $me.Buttons) { + $me.Buttons[$button_name].Enable(); + } + } + ); } ToolBar.prototype.EnableButton = function(button_id) {