From ae2f4e9c0099790a4505e7ce8ba4aa4db6b6bc72 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 25 Oct 2011 16:12:51 +0200 Subject: [PATCH] Added ability to move a dialog into body-tag --- wcfsetup/install/files/js/WCF.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.20.1