From: Cyperghost Date: Fri, 29 Nov 2024 11:57:12 +0000 (+0100) Subject: Run `tsc` X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4929119d0fefe7d70888ab7bc393224a94041dd6;p=GitHub%2FWoltLab%2FWCF.git Run `tsc` --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Option/Enable.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Option/Enable.js index f1e58928ba..e35ef19ccd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Option/Enable.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Option/Enable.js @@ -1,3 +1,11 @@ +/** + * Enables or disables options based on the value of the element. + * + * @author Olaf Braun + * @copyright 2001-2024 WoltLab GmbH + * @license GNU Lesser General Public License + * @since 6.2 + */ define(["require", "exports", "WoltLabSuite/Core/Helper/Selector"], function (require, exports, Selector_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -66,11 +74,9 @@ define(["require", "exports", "WoltLabSuite/Core/Helper/Selector"], function (re // escape dots so that they are not recognized as class selectors const elementId = element.id.replace(/\./g, "\\."); const noElement = document.getElementById(elementId + "_no"); - if (noElement) - noElement.disabled = !enable; + noElement.disabled = !enable; const neverElement = document.getElementById(elementId + "_never"); - if (neverElement) - neverElement.disabled = !enable; + neverElement.disabled = !enable; } } else {