handle exception on store load if paging toolbar is used
[roojs1] / roojs-bootstrap-debug.js
index 8a2a9f6..a8ebd5a 100644 (file)
@@ -16245,14 +16245,10 @@ Roo.extend(Roo.data.HttpProxy, Roo.data.DataProxy, {
         try {
             result = o.reader.read(response);
         }catch(e){
+            o.success = false;
+            o.raw = { errorMsg : response.responseText };
             this.fireEvent("loadexception", this, o, response, e);
-            o.request.callback.call(o.request.scope, {
-                    success : false,
-                    raw : {
-                        errorMsg : response.responseText
-                    }
-                    
-                }, o.request.arg, false);
+            o.request.callback.call(o.request.scope, o, o.request.arg, false);
             return;
         }
         
@@ -28783,7 +28779,7 @@ Roo.extend(Roo.bootstrap.PagingToolbar, Roo.bootstrap.nav.Simplebar, {
     },
 
     // private
-    onLoadError : function(o){
+    onLoadError : function(proxy, o){
         this.loading.enable();
         if (this.ds.events.loadexception.listeners.length  < 2) {
             // nothing has been assigned to loadexception except this...