From: Tim Düsterhus Date: Tue, 19 Jul 2022 09:30:21 +0000 (+0200) Subject: Fix TypeScript code style X-Git-Tag: 5.5.3_dev_2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8dd2c1047c1ab2a7d7ce618fa2d94b2e4b0ac16;p=GitHub%2FWoltLab%2FWCF.git Fix TypeScript code style --- diff --git a/ts/WoltLabSuite/Core/Ui/Dialog.ts b/ts/WoltLabSuite/Core/Ui/Dialog.ts index 071859d4d0..7f1803cf6a 100644 --- a/ts/WoltLabSuite/Core/Ui/Dialog.ts +++ b/ts/WoltLabSuite/Core/Ui/Dialog.ts @@ -698,12 +698,12 @@ const UiDialog = { if (inputField.required) { if (inputField.value.trim() === "") { DomUtil.innerError(inputField, Language.get("wcf.global.form.error.empty")); - inputField.closest('dl')?.classList.add('formError'); + inputField.closest("dl")?.classList.add("formError"); isValid = false; } else { DomUtil.innerError(inputField, false); - inputField.closest('dl')?.classList.remove('formError'); + inputField.closest("dl")?.classList.remove("formError"); } } }); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index ff2c0322b8..bce4026c39 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -574,12 +574,12 @@ define(["require", "exports", "tslib", "../Core", "../Dom/Change/Listener", "./S if (inputField.required) { if (inputField.value.trim() === "") { Util_1.default.innerError(inputField, Language.get("wcf.global.form.error.empty")); - (_a = inputField.closest('dl')) === null || _a === void 0 ? void 0 : _a.classList.add('formError'); + (_a = inputField.closest("dl")) === null || _a === void 0 ? void 0 : _a.classList.add("formError"); isValid = false; } else { Util_1.default.innerError(inputField, false); - (_b = inputField.closest('dl')) === null || _b === void 0 ? void 0 : _b.classList.remove('formError'); + (_b = inputField.closest("dl")) === null || _b === void 0 ? void 0 : _b.classList.remove("formError"); } } });