From a2abf6db8f2afd8aa16a4000745c3f2fb66ec554 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Sat, 20 Sep 2025 00:29:06 -0700 Subject: [PATCH] fix(webui): get correct element for `doAcquireCountItems` (#2794) Closes #2793 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2794 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> --- static/webui/index.html | 6 +++--- static/webui/script.js | 4 ++-- 2 files changed, 5 insertions(+), 5 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..acdece29 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; @@ -2814,7 +2814,7 @@ function doAcquireCountItems(category) { } else { toast(loc("code_succRemoved")); } - if (category != "miscitem") updateInventory(); + if (category != "miscitems") updateInventory(); }); }); }