//<![CDATA[
$(function() {
$('#benchmark').click(function() {
- WCF.showDialog('benchmarkDetails', true, {
+ WCF.showDialog('benchmarkDetails', {
title: 'Log'
});
return false;
* 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);
},