Et2Dialog: Second try waiting on template load

Now creating the template promise immediately on setting template name and using a resolver function to resolve after template is loaded
This commit is contained in:
nathan
2022-12-14 10:39:15 -07:00
parent d1e134677a
commit 54498a005c
2 changed files with 34 additions and 9 deletions

View File

@ -461,7 +461,8 @@ egw.extend('timer', egw.MODULE_GLOBAL, function()
});
// Add to DOM, dialog will auto-open
document.body.appendChild(dialog);
dialog.getUpdateComplete().then(() => {
dialog.updateComplete.then(() =>
{
// enable/disable buttons based on timer state
setButtonState();
// update timers in dialog