From: Alexander Ebert Date: Fri, 7 Oct 2011 17:59:03 +0000 (+0200) Subject: *drum rolls* Fixed input element evaluation once again X-Git-Tag: 2.0.0_Beta_1~1718^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d80e082690b89ead71415f6e300d2fc45c9f353d;p=GitHub%2FWoltLab%2FWCF.git *drum rolls* Fixed input element evaluation once again Still don't understand why .not(':checked') did not work - on the opposite .is(':checked') works perfectly. --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index fdbba47d82..20dccb2fc0 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -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; }