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

index 90a5c36..0def7ee 100644 (file)
@@ -121,7 +121,7 @@ Roo.extend(Roo.form.BasicForm, Roo.util.Observable, {
      * element by passing it or its id or mask the form itself by passing in true.
      * @type Mixed
      */
-    waitMsgTarget : undefined,
+    waitMsgTarget : false,
 
     // private
     initEl : function(el){
@@ -245,8 +245,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     beforeAction : function(action){
         var o = action.options;
         
-        if(typeof(this.waitMsgTarget) == 'undefined'){
-            Roo.get(document.documentElement).mask(o.waitMsg || "Sending", 'x-mask-loading');
+       
         if(this.waitMsgTarget === true){
             this.el.mask(o.waitMsg || "Sending", 'x-mask-loading');
         }else if(this.waitMsgTarget){
@@ -262,16 +261,16 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     afterAction : function(action, success){
         this.activeAction = null;
         var o = action.options;
-        if(o.waitMsg){
-            if(this.waitMsgTarget === true){
-                this.el.unmask();
-            }else if(this.waitMsgTarget){
-                this.waitMsgTarget.unmask();
-            }else{
-                Roo.MessageBox.updateProgress(1);
-                Roo.MessageBox.hide();
-            }
+        
+        if(this.waitMsgTarget === true){
+            this.el.unmask();
+        }else if(this.waitMsgTarget){
+            this.waitMsgTarget.unmask();
+        }else{
+            Roo.MessageBox.updateProgress(1);
+            Roo.MessageBox.hide();
         }
+         
         if(success){
             if(o.reset){
                 this.reset();