diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.repository.js b/scm-webapp/src/main/webapp/resources/js/sonia.repository.js index 989d7b5bb0..6267f15960 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.repository.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.repository.js @@ -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 + } } }]); },