From: Alexander Ebert Date: Sun, 24 May 2015 17:44:11 +0000 (+0200) Subject: Fix for: Fixed issue with wcfDialog() if element is not within the DOM X-Git-Tag: 3.0.0_Beta_1~2314 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4a25c108efc0a9f957b831d798b2aed5f638973;p=GitHub%2FWoltLab%2FWCF.git Fix for: Fixed issue with wcfDialog() if element is not within the DOM --- 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]); }