forked from extern/egroupware
Fixed JS loadFinished notification on IE
This commit is contained in:
parent
4da973400c
commit
9615c33fe8
@ -432,9 +432,14 @@ egw_json_request.prototype.handleResponse = function(data, textStatus, XMLHttpRe
|
|||||||
};
|
};
|
||||||
|
|
||||||
//IE
|
//IE
|
||||||
|
if (typeof scriptnode.readyState != 'undefined')
|
||||||
|
{
|
||||||
|
if (scriptnode.readyState != 'complete' &&
|
||||||
|
scriptnode.readyState != 'loaded')
|
||||||
|
{
|
||||||
scriptnode.onreadystatechange = function() {
|
scriptnode.onreadystatechange = function() {
|
||||||
var node = window.event.srcElement;
|
var node = window.event.srcElement;
|
||||||
if (node.readyState == 'complete') {
|
if (node.readyState == 'complete' || node.readState == 'loaded') {
|
||||||
var file = node._originalSrc;
|
var file = node._originalSrc;
|
||||||
if (typeof console != 'undefined' && typeof console.log != 'undefined')
|
if (typeof console != 'undefined' && typeof console.log != 'undefined')
|
||||||
console.log("Retrieved JS file '%s' from server", [file]);
|
console.log("Retrieved JS file '%s' from server", [file]);
|
||||||
@ -444,6 +449,12 @@ egw_json_request.prototype.handleResponse = function(data, textStatus, XMLHttpRe
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.loadedJSFiles[res.data] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
hasResponse = true;
|
hasResponse = true;
|
||||||
} else
|
} else
|
||||||
throw 'Invalid parameters';
|
throw 'Invalid parameters';
|
||||||
|
Loading…
Reference in New Issue
Block a user