From: Marcel Werk Date: Fri, 7 Aug 2020 20:53:27 +0000 (+0200) Subject: Allow targeting of checkboxes in enableoptions X-Git-Tag: 5.3.0_Alpha_1~81 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00f9f28a9debc6f286caeb41ba4a4fa3f67d77df;p=GitHub%2FWoltLab%2FWCF.git Allow targeting of checkboxes in enableoptions Closes #3277 --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0c7e61dca0..c913d423f6 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3698,7 +3698,7 @@ if (COMPILER_TARGET_DEFAULT) { this._enableOption($target, !isActive); } else { - var $dl = $('.' + $target + 'Input'); + var $dl = $('.' + $.wcfEscapeID($target) + 'Input'); if ($dl.length) { this._enableOptions($dl.children('dd').find('input, select, textarea'), !isActive); } @@ -3713,7 +3713,7 @@ if (COMPILER_TARGET_DEFAULT) { this._enableOption($target, isActive); } else { - var $dl = $('.' + $target + 'Input'); + var $dl = $('.' + $.wcfEscapeID($target) + 'Input'); if ($dl.length) { this._enableOptions($dl.children('dd').find('input, select, textarea'), isActive); }