mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
fix duplicated extjs id
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user