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

index 5d9bfce..eae17c6 100644 (file)
@@ -313,6 +313,9 @@ 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(),
@@ -322,6 +325,9 @@ 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;