From 7289c8d3723e56939774a9b95c252093d9d12e83 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 7 May 2013 08:56:49 +0200 Subject: [PATCH] Fixes issue with package errors before installation dialog is shown Closes #1218 --- wcfsetup/install/files/acp/js/WCF.ACP.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index e1231cd582..783aa7060b 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -410,14 +410,16 @@ WCF.ACP.Package.Installation = Class.extend({ return; } - this._purgeTemplateContent($.proxy(function() { - var $form = $('
').appendTo($('#packageInstallationInnerContent')); - $('').appendTo($form).click($.proxy(this._rollback, this)); - - $('#packageInstallationInnerContentContainer').show(); - - this._dialog.wcfDialog('render'); - }, this)); + if (this._dialog !== null) { + this._purgeTemplateContent($.proxy(function() { + var $form = $('
').appendTo($('#packageInstallationInnerContent')); + $('').appendTo($form).click($.proxy(this._rollback, this)); + + $('#packageInstallationInnerContentContainer').show(); + + this._dialog.wcfDialog('render'); + }, this)); + } }, /** -- 2.20.1