mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Fix "select all" long task threw an error and didn't complete
Progressbar was not found because the load event was never fired from the dialog.
This commit is contained in:
parent
6d38f22949
commit
23977d6c21
@ -697,11 +697,14 @@ export class et2_dataview_selectionManager
|
|||||||
width: 300
|
width: 300
|
||||||
});
|
});
|
||||||
(this._context._widget.getDOMNode() || document.body).appendChild(dialog);
|
(this._context._widget.getDOMNode() || document.body).appendChild(dialog);
|
||||||
dialog.addEventListener('load', function()
|
dialog.updateComplete.then(() =>
|
||||||
|
{
|
||||||
|
dialog.template.DOMContainer.addEventListener('load', function()
|
||||||
{
|
{
|
||||||
// Get access to template widgets
|
// Get access to template widgets
|
||||||
progressbar = dialog.template.widgetContainer.getWidgetById('progressbar');
|
progressbar = dialog.template.widgetContainer.getWidgetById('progressbar');
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
for(var i = 0; i < queryRanges.length; i++)
|
for(var i = 0; i < queryRanges.length; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user