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' );
|
console.debug( group.name + ' selected' );
|
||||||
}
|
}
|
||||||
|
|
||||||
Ext.getCmp('removeButton').setDisabled(false);
|
Ext.getCmp('groupRmButton').setDisabled(false);
|
||||||
var panel = new Sonia.group.FormPanel({
|
var panel = new Sonia.group.FormPanel({
|
||||||
item: group,
|
item: group,
|
||||||
region: 'south',
|
region: 'south',
|
||||||
@@ -346,7 +346,7 @@ Sonia.group.Panel = Ext.extend(Ext.Panel, {
|
|||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
tbar: [
|
tbar: [
|
||||||
{xtype: 'tbbutton', text: 'Add', scope: this, handler: this.showAddForm},
|
{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}
|
{xtype: 'tbbutton', text: 'Reload', scope: this, handler: this.reload}
|
||||||
],
|
],
|
||||||
@@ -424,7 +424,7 @@ Sonia.group.Panel = Ext.extend(Ext.Panel, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
showAddForm: function(){
|
showAddForm: function(){
|
||||||
Ext.getCmp('removeButton').setDisabled(true);
|
Ext.getCmp('groupRmButton').setDisabled(true);
|
||||||
var panel = new Sonia.group.FormPanel({
|
var panel = new Sonia.group.FormPanel({
|
||||||
region: 'south',
|
region: 'south',
|
||||||
title: 'Group Form',
|
title: 'Group Form',
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
|||||||
var panel = null;
|
var panel = null;
|
||||||
|
|
||||||
if ( Sonia.repository.isOwner(item) ){
|
if ( Sonia.repository.isOwner(item) ){
|
||||||
Ext.getCmp('removeButton').setDisabled(false);
|
Ext.getCmp('repoRmButton').setDisabled(false);
|
||||||
panel = new Sonia.repository.FormPanel({
|
panel = new Sonia.repository.FormPanel({
|
||||||
item: item,
|
item: item,
|
||||||
region: 'south',
|
region: 'south',
|
||||||
@@ -141,7 +141,7 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Ext.getCmp('removeButton').setDisabled(true);
|
Ext.getCmp('repoRmButton').setDisabled(true);
|
||||||
panel = Sonia.repository.NoPermissionPanel;
|
panel = Sonia.repository.NoPermissionPanel;
|
||||||
}
|
}
|
||||||
Sonia.repository.setEditPanel(panel);
|
Sonia.repository.setEditPanel(panel);
|
||||||
@@ -425,7 +425,7 @@ Sonia.repository.Panel = Ext.extend(Ext.Panel, {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
toolbar.push(
|
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}
|
{xtype: 'tbbutton', text: 'Reload', scope: this, handler: this.reload}
|
||||||
);
|
);
|
||||||
@@ -516,7 +516,7 @@ Sonia.repository.Panel = Ext.extend(Ext.Panel, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
showAddForm: function(){
|
showAddForm: function(){
|
||||||
Ext.getCmp('removeButton').setDisabled(true);
|
Ext.getCmp('repoRmButton').setDisabled(true);
|
||||||
var panel = new Sonia.repository.FormPanel({
|
var panel = new Sonia.repository.FormPanel({
|
||||||
region: 'south',
|
region: 'south',
|
||||||
title: 'Repository Form',
|
title: 'Repository Form',
|
||||||
|
|||||||
Reference in New Issue
Block a user