projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b932f
)
handle exception on store load if paging toolbar is used
author
Alan Knowles
<alan@roojs.com>
Wed, 18 Aug 2021 10:41:47 +0000
(18:41 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 18 Aug 2021 10:41:47 +0000
(18:41 +0800)
Roo/data/HttpProxy.js
patch
|
blob
|
history
diff --git
a/Roo/data/HttpProxy.js
b/Roo/data/HttpProxy.js
index
9d6f402
..
c08bc53
100644
(file)
--- a/
Roo/data/HttpProxy.js
+++ b/
Roo/data/HttpProxy.js
@@
-129,14
+129,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;
}