fix egw.request() to return simple / non-json-responses, like egw.json() does

This commit is contained in:
ralf 2022-08-08 17:28:38 +02:00
parent e7eb9f42e3
commit e1c8acddc1

View File

@ -527,8 +527,9 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
return value; return value;
} }
} }
return undefined;
} }
return undefined; return response;
}); });
// pass abort method to returned response // pass abort method to returned response
if (typeof response.abort === 'function') if (typeof response.abort === 'function')
@ -859,5 +860,4 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
// Return the extension // Return the extension
return json; return json;
}); });