mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
only catch "Permission denied" errors and rethrow all other, because error in et2_ready or load handler will cause a double loading of UI otherwise
This commit is contained in:
parent
b8f2902e80
commit
6a407a683b
@ -569,8 +569,15 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
|||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
// wired security exception in IE denying access to template cache in opener
|
// wired security exception in IE denying access to template cache in opener
|
||||||
//this.templates =
|
if (e.message == 'Permission denied')
|
||||||
etemplate2.prototype.templates = {};
|
{
|
||||||
|
etemplate2.prototype.templates = {};
|
||||||
|
}
|
||||||
|
// other error eg. in app.js et2_ready or event handlers --> rethrow it
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Asynchronously load the XET file
|
// Asynchronously load the XET file
|
||||||
et2_loadXMLFromURL(_url, function(_xmldoc) {
|
et2_loadXMLFromURL(_url, function(_xmldoc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user