From de07eca122598a159ea4ce8109a9d55a6b3d1148 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 19 Sep 2025 05:24:01 +0200 Subject: [PATCH 1/2] fix(webui): get correct element for `doAcquireCountItems` Closes #2793 --- static/webui/index.html | 6 +++--- static/webui/script.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/webui/index.html b/static/webui/index.html index 3e9713ce..a9f44ce4 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -108,9 +108,9 @@
-
- - + + +
diff --git a/static/webui/script.js b/static/webui/script.js index 84c3676f..ee6195f7 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -2791,7 +2791,7 @@ function setEvolutionProgress(requests) { } function doAcquireCountItems(category) { - const uniqueName = getKey(document.getElementById(category + "-type")); + const uniqueName = getKey(document.getElementById("acquire-type-" + category)); if (!uniqueName) { $(`#acquire-type-${category}`).addClass("is-invalid").focus(); return; -- 2.47.2 From fe759aba298586aaaeea4bad5d17d15612e752f7 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 19 Sep 2025 05:25:41 +0200 Subject: [PATCH 2/2] Update script.js --- static/webui/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/webui/script.js b/static/webui/script.js index ee6195f7..acdece29 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -2814,7 +2814,7 @@ function doAcquireCountItems(category) { } else { toast(loc("code_succRemoved")); } - if (category != "miscitem") updateInventory(); + if (category != "miscitems") updateInventory(); }); }); } -- 2.47.2