diff --git a/scm-webapp/src/main/webapp/resources/images/reload.gif b/scm-webapp/src/main/webapp/resources/images/reload.gif new file mode 100644 index 0000000000..2581584645 Binary files /dev/null and b/scm-webapp/src/main/webapp/resources/images/reload.gif differ diff --git a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js index 5dfdca2414..902e8a8ae0 100644 --- a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js +++ b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js @@ -42,10 +42,10 @@ Sonia.group.Panel = Ext.extend(Sonia.rest.Panel, { initComponent: function(){ var config = { tbar: [ - {xtype: 'tbbutton', text: this.addText, scope: this, handler: this.showAddForm}, - {xtype: 'tbbutton', id: 'groupRmButton', disabled: true, text: this.removeText, scope: this, handler: this.removeGroup}, + {xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddForm}, + {xtype: 'tbbutton', id: 'groupRmButton', disabled: true, text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeGroup}, '-', - {xtype: 'tbbutton', text: this.reloadText, scope: this, handler: this.reload} + {xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload} ], items: [{ id: 'groupGrid', diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js index 9892e401ff..8bd68a6d02 100644 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js +++ b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js @@ -45,13 +45,13 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, { var toolbar = []; if ( admin ){ toolbar.push( - {xtype: 'tbbutton', text: this.addText, scope: this, handler: this.showAddForm} + {xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddForm} ); } toolbar.push( - {xtype: 'tbbutton', id: 'repoRmButton', disabled: true, text: this.removeText, scope: this, handler: this.removeRepository}, + {xtype: 'tbbutton', id: 'repoRmButton', disabled: true, text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeRepository}, '-', - {xtype: 'tbbutton', text: this.reloadText, scope: this, handler: this.reload} + {xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload} ); var config = { diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js index bb0e2c9e88..8ac1a8efd0 100644 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js +++ b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js @@ -38,9 +38,9 @@ Sonia.rest.Panel = Ext.extend(Ext.Panel, { reloadText: 'Reload', // icons - addIcon: '', - removeIcon: '', - reloadIcon: '', + addIcon: 'resources/images/add.gif', + removeIcon: 'resources/images/delete.gif', + reloadIcon: 'resources/images/reload.gif', initComponent: function(){ diff --git a/scm-webapp/src/main/webapp/resources/js/user/sonia.user.panel.js b/scm-webapp/src/main/webapp/resources/js/user/sonia.user.panel.js index f831fe8eb5..e1a7d4bd75 100644 --- a/scm-webapp/src/main/webapp/resources/js/user/sonia.user.panel.js +++ b/scm-webapp/src/main/webapp/resources/js/user/sonia.user.panel.js @@ -44,10 +44,10 @@ Sonia.user.Panel = Ext.extend(Sonia.rest.Panel, { var config = { bodyCssClass: 'x-panel-mc', tbar: [ - {xtype: 'tbbutton', text: this.addText, scope: this, handler: this.showAddPanel}, - {xtype: 'tbbutton', text: this.removeText, scope: this, handler: this.removeUser}, + {xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddPanel}, + {xtype: 'tbbutton', text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeUser}, '-', - {xtype: 'tbbutton', text: this.reloadText, scope: this, handler: this.reload} + {xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload} ], items: [{ id: 'userGrid',