1. Sebastian Sdorra
  2. scm-manager

Commits

Sebastian Sdorra  committed ef98dd9

added reset button

  • Participants
  • Parent commits d3d0e90
  • Branches default

Comments (0)

Files changed (1)

File scm-webapp/src/main/webapp/resources/js/sonia.config.js

View file
  • Ignore whitespace
   items: null,
   onSubmit: null,
   getValues: null,
-  onCancel: null,
 
   initComponent: function(){
 
           scope: this,
           handler: this.submitForm
         },{
-          text: 'Cancel',
+          text: 'Reset',
           scope: this,
-          handler: this.cancel
+          handler: function(){
+            this.getForm().reset();
+          }
         }]
       }]
     };
     if ( this.onSubmit != null && Ext.isFunction( this.onSubmit ) ){
       this.onSubmit( form.getValues() );
     }
-  },
-
-  cancel: function(){
-    var form = this.getForm();
-    if ( this.onCancel != null && Ext.isFunction( this.onCancel ) ){
-      this.onCancel(form);
-    }
   }
 
 });