mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Wrap loadingFinished() in a try / catch, so if one widget has problems it doesn't break the whole template.
This commit is contained in:
parent
0c30eeaee4
commit
f60fa14c30
@ -732,9 +732,16 @@ var et2_widget = Class.extend(
|
|||||||
{
|
{
|
||||||
// Descend recursively into the tree
|
// Descend recursively into the tree
|
||||||
for (var i = 0; i < this._children.length; i++)
|
for (var i = 0; i < this._children.length; i++)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
this._children[i].loadingFinished();
|
this._children[i].loadingFinished();
|
||||||
}
|
}
|
||||||
|
catch (e)
|
||||||
|
{
|
||||||
|
egw.debug("error", "There was an error with a widget:\nError:%s\nProblem widget:%o",e.message,this._children[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -334,7 +334,7 @@ var et2_dialog = et2_widget.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If dialog already created, update buttons
|
// If dialog already created, update buttons
|
||||||
if(this.div.data('uiDialog'))
|
if(this.div.data('ui-dialog'))
|
||||||
{
|
{
|
||||||
this.div.dialog("option", "buttons", buttons);
|
this.div.dialog("option", "buttons", buttons);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user