mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix form.attachTo breaking apf parentNode
This commit is contained in:
parent
d314dcef04
commit
50550acb3b
@ -477,8 +477,12 @@ define(function(require, exports, module) {
|
||||
container.parentNode = htmlNode;
|
||||
htmlNode = htmlNode.$int;
|
||||
}
|
||||
|
||||
htmlNode.insertBefore(container.$ext, beforeNode || null);
|
||||
// if we have apf node, make sure apf child-parent links do not get broken
|
||||
if (htmlNode.host && container.host) {
|
||||
htmlNode.host.insertBefore(container.host, beforeNode && beforeNode.host);
|
||||
} else {
|
||||
htmlNode.insertBefore(container.$ext, beforeNode || null);
|
||||
}
|
||||
show();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user