Roo/LoadMask.js
authorAlan Knowles <alan@roojs.com>
Fri, 2 Aug 2013 08:39:18 +0000 (16:39 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Aug 2013 08:39:18 +0000 (16:39 +0800)
Roo/LoadMask.js

index 50c0f74..73f9a5f 100644 (file)
@@ -79,9 +79,23 @@ Roo.LoadMask.prototype = {
     {
         Roo.log(arguments);
         
-        if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') {
-            Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg);
+        if (typeof(arguments[3]) != 'undefined') {
+            Roo.MessageBox.alert("Error loading",arguments[3]);
+        } else {
+            /*
+            try {
+                if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') {
+                    Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg);
+                }   
+            } catch(e) {
+                
+            }
+            */
         }
+        // te
+        
+        
+        
         this.el.unmask(this.removeMask);
     },
     // private