fix cancel button

This commit is contained in:
Sebastian Sdorra
2010-11-29 21:18:22 +01:00
parent d620c64083
commit 91f630a03c
3 changed files with 32 additions and 25 deletions

View File

@@ -152,7 +152,7 @@ Sonia.rest.FormPanel = Ext.extend(Ext.FormPanel,{
buttonAlign: 'center',
buttons: [
{text: 'Ok', formBind: true, scope: this, handler: this.submit},
{text: 'Cancel', scope: this, handler: this.reset}
{text: 'Cancel', scope: this, handler: this.cancel}
]
}
@@ -182,7 +182,7 @@ Sonia.rest.FormPanel = Ext.extend(Ext.FormPanel,{
}
},
reset: function(){
cancel: function(){
if ( debug ){
console.debug( 'reset form' );
}