fix duplicated extjs id

This commit is contained in:
Sebastian Sdorra
2011-02-03 20:30:47 +01:00
parent fa1aa6a251
commit a268d7a41f
2 changed files with 8 additions and 8 deletions

View File

@@ -103,7 +103,7 @@ Sonia.group.Grid = Ext.extend(Sonia.rest.Grid, {
console.debug( group.name + ' selected' );
}
Ext.getCmp('removeButton').setDisabled(false);
Ext.getCmp('groupRmButton').setDisabled(false);
var panel = new Sonia.group.FormPanel({
item: group,
region: 'south',
@@ -346,7 +346,7 @@ Sonia.group.Panel = Ext.extend(Ext.Panel, {
autoScroll: true,
tbar: [
{xtype: 'tbbutton', text: 'Add', scope: this, handler: this.showAddForm},
{xtype: 'tbbutton', id: 'removeButton', disabled: true, text: 'Remove', scope: this, handler: this.removeGroup},
{xtype: 'tbbutton', id: 'groupRmButton', disabled: true, text: 'Remove', scope: this, handler: this.removeGroup},
'-',
{xtype: 'tbbutton', text: 'Reload', scope: this, handler: this.reload}
],
@@ -424,7 +424,7 @@ Sonia.group.Panel = Ext.extend(Ext.Panel, {
},
showAddForm: function(){
Ext.getCmp('removeButton').setDisabled(true);
Ext.getCmp('groupRmButton').setDisabled(true);
var panel = new Sonia.group.FormPanel({
region: 'south',
title: 'Group Form',

View File

@@ -125,7 +125,7 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
var panel = null;
if ( Sonia.repository.isOwner(item) ){
Ext.getCmp('removeButton').setDisabled(false);
Ext.getCmp('repoRmButton').setDisabled(false);
panel = new Sonia.repository.FormPanel({
item: item,
region: 'south',
@@ -141,7 +141,7 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
}
});
} else {
Ext.getCmp('removeButton').setDisabled(true);
Ext.getCmp('repoRmButton').setDisabled(true);
panel = Sonia.repository.NoPermissionPanel;
}
Sonia.repository.setEditPanel(panel);
@@ -425,7 +425,7 @@ Sonia.repository.Panel = Ext.extend(Ext.Panel, {
);
}
toolbar.push(
{xtype: 'tbbutton', id: 'removeButton', disabled: true, text: 'Remove', scope: this, handler: this.removeRepository},
{xtype: 'tbbutton', id: 'repoRmButton', disabled: true, text: 'Remove', scope: this, handler: this.removeRepository},
'-',
{xtype: 'tbbutton', text: 'Reload', scope: this, handler: this.reload}
);
@@ -516,7 +516,7 @@ Sonia.repository.Panel = Ext.extend(Ext.Panel, {
},
showAddForm: function(){
Ext.getCmp('removeButton').setDisabled(true);
Ext.getCmp('repoRmButton').setDisabled(true);
var panel = new Sonia.repository.FormPanel({
region: 'south',
title: 'Repository Form',