From a21467db4f3833333372974c3122aa261e5d0c68 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Tue, 8 Jun 2021 09:10:05 +0200 Subject: [PATCH] Fix iconContainer identifier --- ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts | 4 ++-- .../install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts b/ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts index bedccd0e82..abdf14676a 100644 --- a/ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts +++ b/ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts @@ -125,8 +125,8 @@ class AcpUiTrophyBadge implements DialogCallbackObject { this.badgeColorInput.value = badgeColor; this.iconColorInput.value = iconColor; - const iconContainer = document.getElementById("iconContainer")!; - const previewIcon = iconContainer.querySelector(".jsTrophyIcon") as HTMLElement; + const badgeContainer = document.getElementById("badgeContainer")!; + const previewIcon = badgeContainer.querySelector(".jsTrophyIcon") as HTMLElement; // set icon previewIcon.className = previewIcon.className.replace(/\b(fa-[a-z0-9-]+)\b/, ""); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js index e018481339..802ae531d5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js @@ -94,8 +94,8 @@ define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dialog" this.iconNameInput.value = icon; this.badgeColorInput.value = badgeColor; this.iconColorInput.value = iconColor; - const iconContainer = document.getElementById("iconContainer"); - const previewIcon = iconContainer.querySelector(".jsTrophyIcon"); + const badgeContainer = document.getElementById("badgeContainer"); + const previewIcon = badgeContainer.querySelector(".jsTrophyIcon"); // set icon previewIcon.className = previewIcon.className.replace(/\b(fa-[a-z0-9-]+)\b/, ""); previewIcon.classList.add("fa-" + icon); -- 2.20.1