From: Alexander Ebert Date: Mon, 28 Aug 2017 12:45:31 +0000 (+0200) Subject: Fixed dialog content container being nested X-Git-Tag: 3.1.0_Alpha_2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4ccfec2efb6c547c92e39640ddf1fa3d4ebd798;p=GitHub%2FWoltLab%2FWCF.git Fixed dialog content container being nested This may have unintended side-effects! Fixes #2395 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index e34c7a782e..b4b310a3f8 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -393,13 +393,13 @@ define( } } - if (children[0].nodeName !== 'div' || children.length > 1) { + if (children[0].nodeName !== 'DIV' || children.length > 1) { content = elCreate('div'); content.id = id; content.appendChild(html); } else { - content = html; + content = children[0]; } } }