Index: branches/5.2.x/core/admin_templates/js/toolbar.js =================================================================== diff -u -N -r14856 -r15284 --- branches/5.2.x/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 14856) +++ branches/5.2.x/core/admin_templates/js/toolbar.js (.../toolbar.js) (revision 15284) @@ -55,29 +55,44 @@ } } -ToolBarButton.prototype.IconsPath = function() +ToolBarButton.prototype.IconsPath = function($module_path) { - var $module_path = this.Module; + if ( $module_path === undefined ) { + $module_path = this.Module; + } - if (this.Module != 'core') { + if ( $module_path != 'core' ) { $module_path = 'modules/' + $module_path; } return this.ToolBar.IconPath.replace('#MODULE#', $module_path) + 'toolbar/'; } ToolBarButton.prototype.GetHTML = function() { - var add_style = this.ToolBar.ButtonStyle ? 'style="'+this.ToolBar.ButtonStyle+'"' : ''; - var o = '