Add nm action dialogs into application tab, not document body

This commit is contained in:
nathan 2022-12-14 16:10:50 -07:00
parent 8f7783e97c
commit 2ed0479380

View File

@ -449,7 +449,8 @@ export function nm_open_popup(_action, _selected)
}
else if (popup)
{
let dialog = new Et2Dialog();
let nm = _action.data.nextmatch;
let dialog = new Et2Dialog(nm?.egw());
dialog.destroyOnClose = false;
dialog.id = popup.id;
popup.removeAttribute("id");
@ -491,7 +492,14 @@ export function nm_open_popup(_action, _selected)
dialog.appendChild(popup);
dialog.requestUpdate();
document.body.appendChild(dialog);
if (nm)
{
nm.getInstanceManager().DOMContainer.appendChild(dialog);
}
else
{
document.body.appendChild(dialog);
}
// Reset global variables
nm_popup_action = null;