mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +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)
|
function parseServerResponse(_result, _callback, _context)
|
||||||
{
|
{
|
||||||
// Check whether the result is valid -- so "result" has to be an object
|
// Check whether the result is valid
|
||||||
// consting of "order" and "data"
|
// 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"
|
if (!(_result && typeof _result.order !== "undefined"
|
||||||
&& typeof _result.data !== "undefined"))
|
&& typeof _result.data !== "undefined"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user