Fixed previous commit messing around with text input
authorAlexander Ebert <ebert@woltlab.com>
Fri, 7 Oct 2011 17:01:26 +0000 (19:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 7 Oct 2011 17:01:26 +0000 (19:01 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js

index ed4f2aa87ea7ab9e0793de90aa4afde226a5f561..fdbba47d821ae1e8c0ddf47ea1f5db8fb34472d3 100644 (file)
@@ -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);