mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +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
@ -733,7 +733,14 @@ var et2_widget = Class.extend(
|
||||
// Descend recursively into the tree
|
||||
for (var i = 0; i < this._children.length; i++)
|
||||
{
|
||||
this._children[i].loadingFinished();
|
||||
try
|
||||
{
|
||||
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(this.div.data('uiDialog'))
|
||||
if(this.div.data('ui-dialog'))
|
||||
{
|
||||
this.div.dialog("option", "buttons", buttons);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user