From a4a25c108efc0a9f957b831d798b2aed5f638973 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 24 May 2015 19:44:11 +0200 Subject: [PATCH] Fix for: Fixed issue with wcfDialog() if element is not within the DOM --- wcfsetup/install/files/js/WCF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index e187be3304..5d812a219b 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -9166,7 +9166,7 @@ jQuery.fn.extend({ } } else { - if (this[0].parentNode === null) { + if (this[0].parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) { // if element is not already part of the DOM, UIDialog.open() will fail document.body.appendChild(this[0]); } -- 2.20.1