Removed unnecessary moveToBody parameter
authorAlexander Ebert <ebert@woltlab.com>
Mon, 23 Jan 2012 17:32:27 +0000 (18:32 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 23 Jan 2012 17:32:27 +0000 (18:32 +0100)
com.woltlab.wcf/template/benchmark.tpl
wcfsetup/install/files/acp/templates/benchmark.tpl
wcfsetup/install/files/js/WCF.js

index 3b32bb4bf2df6ec07aeb16bdf19b2a002eb84351..046494099dfee97ef7b65b07ee4cf954b6ef8c7d 100644 (file)
@@ -11,7 +11,7 @@
                //<![CDATA[
                $(function() {
                        $('#benchmark').click(function() {
-                               WCF.showDialog('benchmarkDetails', true, {
+                               WCF.showDialog('benchmarkDetails', {
                                        title: 'Log'
                                });
                                return false;
index 3b32bb4bf2df6ec07aeb16bdf19b2a002eb84351..046494099dfee97ef7b65b07ee4cf954b6ef8c7d 100644 (file)
@@ -11,7 +11,7 @@
                //<![CDATA[
                $(function() {
                        $('#benchmark').click(function() {
-                               WCF.showDialog('benchmarkDetails', true, {
+                               WCF.showDialog('benchmarkDetails', {
                                        title: 'Log'
                                });
                                return false;
index 524f9d4426f67e1976b540cdcf1ae649599f7df3..1a485d5da5a128884dfa3ad4d3b2457d331fd22f 100644 (file)
@@ -460,19 +460,15 @@ $.extend(WCF, {
         * Shows a modal dialog.
         * 
         * @param       string          dialogID
-        * @param       boolean         moveToBody
         */
-       showDialog: function(dialogID, moveToBody) {
+       showDialog: function(dialogID) {
                // 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] || {};
+               var dialogOptions = arguments[1] || {};
                $dialog.wcfDialog(dialogOptions);
        },