forked from extern/egroupware
Add nm action dialogs into application tab, not document body
This commit is contained in:
parent
8f7783e97c
commit
2ed0479380
@ -449,7 +449,8 @@ export function nm_open_popup(_action, _selected)
|
|||||||
}
|
}
|
||||||
else if (popup)
|
else if (popup)
|
||||||
{
|
{
|
||||||
let dialog = new Et2Dialog();
|
let nm = _action.data.nextmatch;
|
||||||
|
let dialog = new Et2Dialog(nm?.egw());
|
||||||
dialog.destroyOnClose = false;
|
dialog.destroyOnClose = false;
|
||||||
dialog.id = popup.id;
|
dialog.id = popup.id;
|
||||||
popup.removeAttribute("id");
|
popup.removeAttribute("id");
|
||||||
@ -491,7 +492,14 @@ export function nm_open_popup(_action, _selected)
|
|||||||
dialog.appendChild(popup);
|
dialog.appendChild(popup);
|
||||||
dialog.requestUpdate();
|
dialog.requestUpdate();
|
||||||
|
|
||||||
document.body.appendChild(dialog);
|
if (nm)
|
||||||
|
{
|
||||||
|
nm.getInstanceManager().DOMContainer.appendChild(dialog);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
document.body.appendChild(dialog);
|
||||||
|
}
|
||||||
|
|
||||||
// Reset global variables
|
// Reset global variables
|
||||||
nm_popup_action = null;
|
nm_popup_action = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user