*drum rolls* Fixed input element evaluation once again
authorAlexander Ebert <ebert@woltlab.com>
Fri, 7 Oct 2011 17:59:03 +0000 (19:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 7 Oct 2011 17:59:03 +0000 (19:59 +0200)
Still don't understand why .not(':checked') did not work - on the opposite .is(':checked') works perfectly.

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

index fdbba47d821ae1e8c0ddf47ea1f5db8fb34472d3..20dccb2fc0c0087bce8258c4e3f883f1cfd0ffa7 100644 (file)
@@ -245,7 +245,7 @@ WCF.ACP.PackageInstallation.prototype = {
                                                var $inputElement = $(inputElement);
                                                var $type = $inputElement.attr('type');
                                                
-                                               if (($type == 'checkbox' || $type == 'radio') && $inputElement.not(':checked')) {
+                                               if (($type == 'checkbox' || $type == 'radio') && !$inputElement.attr('checked')) {
                                                        return false;
                                                }