mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Fix missing nm filters
This commit is contained in:
parent
6120d820aa
commit
9cd746f0b4
@ -2849,13 +2849,35 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
{
|
{
|
||||||
// Call all availble setters
|
// Call all availble setters
|
||||||
this.initAttributes(this.options);
|
this.initAttributes(this.options);
|
||||||
|
let childPromises = [];
|
||||||
|
let loadChildren = () =>
|
||||||
|
{
|
||||||
|
// Descend recursively into the tree
|
||||||
|
for(var i = 0; i < this._children.length; i++)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this._children[i].loadingFinished(childPromises);
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
egw.debug("error", "There was an error with a widget:\nError:%o\nProblem widget:%o", e.valueOf(), this._children[i], e.stack);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
var result = this.doLoadingFinished();
|
var result = this.doLoadingFinished();
|
||||||
if(typeof result == "object" && result.then)
|
if(typeof result == "object" && result.then)
|
||||||
{
|
{
|
||||||
// Widget is waiting. Add to the list
|
// Widget is waiting. Add to the list
|
||||||
promises.push(result);
|
promises.push(result);
|
||||||
|
result.then(loadChildren);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
loadChildren()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Input widget
|
// Input widget
|
||||||
|
Loading…
Reference in New Issue
Block a user