mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Avoid an additional javascript error in case of 404
This commit is contained in:
parent
7ebb83b772
commit
de2c9756f1
@ -62,8 +62,11 @@ function et2_loadXMLFromURL(_url, _callback, _context)
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if (xmlhttp.readyState == 4)
|
||||
{
|
||||
var xmldoc = xmlhttp.responseXML.documentElement;
|
||||
_callback.call(_context, xmldoc);
|
||||
if(xmlhttp.responseXML)
|
||||
{
|
||||
var xmldoc = xmlhttp.responseXML.documentElement;
|
||||
_callback.call(_context, xmldoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user