Fixed dialog content container being nested
authorAlexander Ebert <ebert@woltlab.com>
Mon, 28 Aug 2017 12:45:31 +0000 (14:45 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 28 Aug 2017 12:45:31 +0000 (14:45 +0200)
This may have unintended side-effects!

Fixes #2395

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index e34c7a782e93d11f545e4f92c11fe4292db64760..b4b310a3f8e002c544966f80afd61cfdde39e54b 100644 (file)
@@ -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];
                                        }
                                }
                        }