From d188f5008dcf2b9ba551b567e0f8062858cc615e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 6 Aug 2015 18:21:27 +0200 Subject: [PATCH] Reinsert code removed in previous commit --- wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js index b2e3a42b14..db2821e5db 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js @@ -295,7 +295,12 @@ define( content.innerHTML = html; } else if (html instanceof DocumentFragment) { - content.appendChild(html); + if (html.children[0].nodeName !== 'div' || html.childElementCount > 1) { + content.appendChild(html); + } + else { + content = html.children[0]; + } } content.id = id; -- 2.20.1