mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 10:28:31 +02:00
fix not working InfoLog index: synchronous request must return fulfilled promise
This commit is contained in:
@ -70,7 +70,8 @@ export function et2_loadXMLFromURL(_url : string, _callback? : Function, _contex
|
||||
return xmldoc.children[0];
|
||||
})
|
||||
.catch((_err) => {
|
||||
egw().debug('error', 'Loading eTemplate from '+_url+' failed! '+_err.status+' '+_err.statusText);
|
||||
egw().message('Loading eTemplate from '+_url+' failed!'+"\n\n"+
|
||||
(typeof _err.stack !== 'undefined' ? _err.stack : _err.status+' '+_err.statusText), 'error');
|
||||
if(typeof _fail_callback === 'function') {
|
||||
_fail_callback.call(_context, _err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user