Reinsert code removed in previous commit
authorMatthias Schmidt <gravatronics@live.com>
Thu, 6 Aug 2015 16:21:27 +0000 (18:21 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 6 Aug 2015 16:21:27 +0000 (18:21 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ui/Dialog.js

index b2e3a42b14d369cbc3ce5e086176b35a715c711f..db2821e5dba48d6ce997c7cf799d6cc806aa88b0 100644 (file)
@@ -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;