From 53c0bfc95526ea9c228ab383df992f6353ea2958 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Tue, 18 Jan 2011 20:20:41 +0100 Subject: [PATCH] remove edit marks after save --- scm-webapp/src/main/webapp/resources/js/sonia.group.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.group.js b/scm-webapp/src/main/webapp/resources/js/sonia.group.js index 0ecbde4a23..168b38b64a 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.group.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.group.js @@ -237,6 +237,10 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{ item.members = members; }, + clearModifications: function(){ + Ext.getCmp('memberGrid').getStore().commitChanges(); + }, + update: function(group){ if ( debug ){ console.debug( 'update group ' + group.name ); @@ -258,7 +262,7 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{ if ( debug ){ console.debug('update success'); } - // this.clearModifications(); + this.clearModifications(); clearTimeout(tid); el.unmask(); this.execCallback(this.onUpdate, group);