From 82eaa0c69964267033074749de89720b4520442a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 15 Oct 2012 14:44:43 +0200 Subject: [PATCH] Fixed JavaScript error during uninstallation Fixes #842 --- wcfsetup/install/files/acp/js/WCF.ACP.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index ba5e86f6c1..fee364e95a 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -529,7 +529,7 @@ WCF.ACP.Package.Uninstallation.prototype = { this._installation = new WCF.ACP.Package.Installation('uninstall', 0, false); // initialize dialog - WCF.showAJAXDialog('packageInstallationDialog', true, { + var $dialog = WCF.showAJAXDialog('packageInstallationDialog', true, { ajax: true, closable: false, data: { packageID: parameters.packageID, step: 'prepare' }, @@ -537,6 +537,7 @@ WCF.ACP.Package.Uninstallation.prototype = { title: 'wcf.acp.package.uninstall.title', url: 'index.php/UninstallPackage/?t=' + SECURITY_TOKEN + SID_ARG_2ND }); + this._installation._api = $dialog.data('wcfDialog'); } }; -- 2.20.1