From: Alexander Ebert Date: Fri, 7 Oct 2011 17:01:26 +0000 (+0200) Subject: Fixed previous commit messing around with text input X-Git-Tag: 2.0.0_Beta_1~1718^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d769d65eb36c88da4684fe2c67e7203a98f4e243;p=GitHub%2FWoltLab%2FWCF.git Fixed previous commit messing around with text input --- 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);