From b4ccfec2efb6c547c92e39640ddf1fa3d4ebd798 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 28 Aug 2017 14:45:31 +0200 Subject: [PATCH] Fixed dialog content container being nested This may have unintended side-effects! Fixes #2395 --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; } } } -- 2.20.1