Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/js/toolbar.js =================================================================== diff -u -r7102 -r7283 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 7102) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 7283) @@ -79,6 +79,17 @@ this.SetOnMouseOut(); this.SetOnClick(); if (this.Hidden) this.Hide(); + 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'; + real_path = real_path.replace('http://kostja.prod.intechnic.lv/in-portal.RC', '.'); + old_path = old_path.replace('http://kostja.prod.intechnic.lv/in-portal.RC', '.'); + var source = old_path.replace('/core/', '/kernel/').replace('.gif', '*.gif'); + var path = 'cp '+source+' '+real_path; +// prompt('exec: ', path) +// img.src = 'img/bad_button.GIF'; + } +// preg_print_pre(img, /natural|compl/i) } ToolBarButton.prototype.SetOnMouseOver = function() {