From: Alexander Ebert Date: Tue, 25 Oct 2011 14:12:51 +0000 (+0200) Subject: Added ability to move a dialog into body-tag X-Git-Tag: 2.0.0_Beta_1~1659 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ae2f4e9c0099790a4505e7ce8ba4aa4db6b6bc72;p=GitHub%2FWoltLab%2FWCF.git Added ability to move a dialog into body-tag --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 3d6c16c121..da995d2042 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -388,13 +388,17 @@ $.extend(WCF, { /** * Shows a modal dialog. * @param string dialogID + * @param boolean moveToBody */ - showDialog: function(dialogID) { + showDialog: function(dialogID, moveToBody) { // we cannot work with a non-existant dialog, if you wish to // load content via AJAX, see showAJAXDialog() instead if (!$.wcfIsset(dialogID)) return; var $dialog = $('#' + $.wcfEscapeID(dialogID)); + if (moveToBody) { + $dialog.remove().appendTo($('body')); + } var dialogOptions = arguments[2] || {}; $dialog.wcfDialog(dialogOptions);