From d769d65eb36c88da4684fe2c67e7203a98f4e243 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 7 Oct 2011 19:01:26 +0200 Subject: [PATCH] Fixed previous commit messing around with text input --- wcfsetup/install/files/acp/js/WCF.ACP.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index ed4f2aa87e..fdbba47d82 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -243,10 +243,13 @@ WCF.ACP.PackageInstallation.prototype = { var $additionalData = {}; $('#packageInstallationInnerContent').find('input').each(function(index, inputElement) { var $inputElement = $(inputElement); + var $type = $inputElement.attr('type'); - if ($inputElement.is(':checked')) { - $additionalData[$inputElement.attr('name')] = $inputElement.val(); + if (($type == 'checkbox' || $type == 'radio') && $inputElement.not(':checked')) { + return false; } + + $additionalData[$inputElement.attr('name')] = $inputElement.val(); }); this._executeStep($data.step, $data.node, $additionalData); -- 2.20.1