From 4929119d0fefe7d70888ab7bc393224a94041dd6 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 29 Nov 2024 12:57:12 +0100 Subject: [PATCH] Run `tsc` --- .../WoltLabSuite/Core/Component/Option/Enable.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 { -- 2.20.1