From: Matthias Schmidt Date: Thu, 6 Aug 2015 16:21:27 +0000 (+0200) Subject: Reinsert code removed in previous commit X-Git-Tag: 3.0.0_Beta_1~2148 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d188f5008dcf2b9ba551b567e0f8062858cc615e;p=GitHub%2FWoltLab%2FWCF.git Reinsert code removed in previous commit --- 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;