Fix iconContainer identifier
authorjoshuaruesweg <ruesweg@woltlab.com>
Tue, 8 Jun 2021 07:10:05 +0000 (09:10 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Tue, 8 Jun 2021 07:10:56 +0000 (09:10 +0200)
ts/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Trophy/Badge.js

index bedccd0e82f0119dbc896d0768f1e5f11bf36aa8..abdf14676a6f661e4e58fb786679c6c3aa6cbf0f 100644 (file)
@@ -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/, "");
index e0184813398ba22643d45cb145094f0e7b5f15f5..802ae531d565af821420728f78fe87ba2f167b78 100644 (file)
@@ -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);