Fixed JavaScript error during uninstallation
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Oct 2012 12:44:43 +0000 (14:44 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Oct 2012 12:44:43 +0000 (14:44 +0200)
Fixes #842

wcfsetup/install/files/acp/js/WCF.ACP.js

index ba5e86f6c169bb73cf41f45738003cee5dfc7470..fee364e95a0861706dacada53ab4b7c2c68278e9 100644 (file)
@@ -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');
        }
 };