From a0dcf5661bef525f3ac9c8fbb81a42845c6d7e72 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 7 Apr 2011 18:00:00 +0200 Subject: [PATCH] user created and updated events instead of onUpdate and onCreate --- .../webapp/resources/js/sonia.repository.js | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) 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 + } } }]); },