Roo/bootstrap/Form.js
authorEdward <edward@roojs.com>
Mon, 12 May 2014 05:22:01 +0000 (13:22 +0800)
committerEdward <edward@roojs.com>
Mon, 12 May 2014 05:22:01 +0000 (13:22 +0800)
Roo/form/Action.js

Roo/bootstrap/Form.js
Roo/form/Action.js

index 345ebd3..56d45a2 100644 (file)
@@ -186,9 +186,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
         if(typeof action == 'string'){
             action = new Roo.form.Action.ACTION_TYPES[action](this, options);
         }
-        Roo.log(action);
         if(this.fireEvent('beforeaction', this, action) !== false){
-            Roo.log('in!!!');
             this.beforeAction(action);
             action.run.defer(100, action);
         }
@@ -234,7 +232,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
             this.fireEvent('actioncomplete', this, action);
             
         }else{
-            Roo.log('go into the fail??');
+            
             // failure condition..
             // we have a scenario where updates need confirming.
             // eg. if a locking scenario exists..
@@ -264,8 +262,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                 
                 return;
             }
-            Roo.log(o.failure);
-            Roo.log(o.scope);
+            
             Roo.callback(o.failure, o.scope, [this, action]);
             // show an error message if no failed handler is set..
             if (!this.hasListener('actionfailed')) {
@@ -278,7 +275,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                 );
                 */
             }
-            Roo.log('got the end??!!');
+            
             this.fireEvent('actionfailed', this, action);
         }
         
index dca1dfc..c388f89 100644 (file)
@@ -212,10 +212,8 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
         var o = this.options;
         var method = this.getMethod();
         var isPost = method == 'POST';
-        Roo.log(o);
-        Roo.log(this.form.isValid());
         if(o.clientValidation === false || this.form.isValid()){
-            Roo.log('got here');
+            
             if (this.form.progressUrl) {
                 this.form.findField('UPLOAD_IDENTIFIER').setValue(
                     (new Date() * 1) + '' + Math.random());
@@ -234,7 +232,6 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
             this.uploadProgress();
 
         }else if (o.clientValidation !== false){ // client validation failed
-            Roo.log('got fail??');
             this.failureType = Roo.form.Action.CLIENT_INVALID;
             this.form.afterAction(this, false);
         }