remove edit marks after save

This commit is contained in:
Sebastian Sdorra
2011-01-18 20:20:41 +01:00
parent 6cb5ae1f88
commit 53c0bfc955

View File

@@ -237,6 +237,10 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
item.members = members; item.members = members;
}, },
clearModifications: function(){
Ext.getCmp('memberGrid').getStore().commitChanges();
},
update: function(group){ update: function(group){
if ( debug ){ if ( debug ){
console.debug( 'update group ' + group.name ); console.debug( 'update group ' + group.name );
@@ -258,7 +262,7 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
if ( debug ){ if ( debug ){
console.debug('update success'); console.debug('update success');
} }
// this.clearModifications(); this.clearModifications();
clearTimeout(tid); clearTimeout(tid);
el.unmask(); el.unmask();
this.execCallback(this.onUpdate, group); this.execCallback(this.onUpdate, group);