From d80e082690b89ead71415f6e300d2fc45c9f353d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 7 Oct 2011 19:59:03 +0200 Subject: [PATCH] *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. --- wcfsetup/install/files/acp/js/WCF.ACP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1