mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Check result type, if it's not 'data' quietly reject - fixes warning in multi-part responses
This commit is contained in:
parent
8d4fc1001f
commit
31987e9704
@ -38,8 +38,11 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
|
||||
|
||||
function parseServerResponse(_result, _callback, _context)
|
||||
{
|
||||
// Check whether the result is valid -- so "result" has to be an object
|
||||
// consting of "order" and "data"
|
||||
// Check whether the result is valid
|
||||
// This result is not for us, quietly return
|
||||
if(_result && typeof _result.type != 'undefined' && _result.type != 'data') return;
|
||||
|
||||
// "result" has to be an object consting of "order" and "data"
|
||||
if (!(_result && typeof _result.order !== "undefined"
|
||||
&& typeof _result.data !== "undefined"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user