Roo/form/Action.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 10 Feb 2011 06:20:30 +0000 (14:20 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 10 Feb 2011 06:20:30 +0000 (14:20 +0800)
Roo/form/Action.js

index 5eb2096..59c5dad 100644 (file)
@@ -67,9 +67,7 @@ Roo.form.Action.prototype = {
 
     // default connection failure
     failure : function(response){
-        if (this.form.maskEl) {
-            this.form.maskEl.unmask();
-        }
+        
         this.response = response;
         this.failureType = Roo.form.Action.CONNECT_FAILURE;
         this.form.afterAction(this, false);
@@ -217,9 +215,7 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
                     (new Date() * 1) + '' + Math.random());
                     
             } 
-            if (this.form.maskEl) {
-                this.form.maskEl.mask("Saving");
-            }
+            
             
             Roo.Ajax.request(Roo.apply(this.createCallback(), {
                 form:this.form.el.dom,
@@ -243,9 +239,7 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
         if (this.haveProgress) {
             Roo.MessageBox.hide();
         }
-        if (this.form.maskEl) {
-            this.form.maskEl.unmask();
-        }
+        
         
         var result = this.processResponse(response);
         if(result === true || result.success){
@@ -264,9 +258,7 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
         if (this.haveProgress) {
             Roo.MessageBox.hide();
         }
-        if (this.form.maskEl) {
-            this.form.maskEl.unmask();
-        }
+        
         
         this.response = response;
         this.failureType = Roo.form.Action.CONNECT_FAILURE;
@@ -316,9 +308,7 @@ Roo.extend(Roo.form.Action.Load, Roo.form.Action, {
     type : 'load',
 
     run : function(){
-        if (this.form.maskEl) {
-            this.form.maskEl.mask("Loading");
-        }
+        
         Roo.Ajax.request(Roo.apply(
                 this.createCallback(), {
                     method:this.getMethod(),
@@ -328,9 +318,7 @@ Roo.extend(Roo.form.Action.Load, Roo.form.Action, {
     },
 
     success : function(response){
-        if (this.form.maskEl) {
-            this.form.maskEl.unmask();
-        }
+        
         var result = this.processResponse(response);
         if(result === true || !result.success || !result.data){
             this.failureType = Roo.form.Action.LOAD_FAILURE;