Fix TypeScript code style
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 19 Jul 2022 09:30:21 +0000 (11:30 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 19 Jul 2022 09:30:21 +0000 (11:30 +0200)
ts/WoltLabSuite/Core/Ui/Dialog.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index 071859d4d00e508d08de66f22a3a044c33b981e0..7f1803cf6a6e4df464743748bc02a5c662bb63f0 100644 (file)
@@ -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");
         }
       }
     });
index ff2c0322b862bce13622a3b0f9e499477eb2ca47..bce4026c394cf88d4614225084020991ce1be3ce 100644 (file)
@@ -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");
                     }
                 }
             });