mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-31 03:39:14 +01:00
user created and updated events instead of onUpdate and onCreate
This commit is contained in:
@@ -162,13 +162,15 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
},{
|
||||
item: item,
|
||||
xtype: 'repositoryPermissionsForm',
|
||||
onUpdate: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
},
|
||||
onCreate: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
listeners: {
|
||||
updated: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
},
|
||||
created: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
}
|
||||
}
|
||||
}];
|
||||
} else {
|
||||
@@ -693,13 +695,15 @@ Sonia.repository.Panel = Ext.extend(Ext.Panel, {
|
||||
Ext.getCmp('repoRmButton').setDisabled(true);
|
||||
Sonia.repository.setEditPanel([{
|
||||
xtype: 'repositoryPropertiesForm',
|
||||
onUpdate: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
},
|
||||
onCreate: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
listeners: {
|
||||
updated: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
},
|
||||
created: {
|
||||
fn: this.reload,
|
||||
scope: this
|
||||
}
|
||||
}
|
||||
}]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user