From 768cc841e3f29c3273e608359eb9d0ae7525da77 Mon Sep 17 00:00:00 2001
From: Sainan <63328889+Sainan@users.noreply.github.com>
Date: Wed, 8 Oct 2025 18:00:48 +0200
Subject: [PATCH] chore(webui): debounce guild tech actions
---
static/webui/script.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/static/webui/script.js b/static/webui/script.js
index dc0d7f32..74a58c11 100644
--- a/static/webui/script.js
+++ b/static/webui/script.js
@@ -1771,7 +1771,7 @@ function updateInventory() {
a.href = "#";
a.onclick = function (event) {
event.preventDefault();
- fundGuildTechProject(item.ItemType);
+ debounce(fundGuildTechProject, item.ItemType);
};
a.title = loc("code_fund");
a.innerHTML = ``;
@@ -1788,7 +1788,7 @@ function updateInventory() {
a.href = "#";
a.onclick = function (event) {
event.preventDefault();
- completeGuildTechProject(item.ItemType);
+ debounce(completeGuildTechProject, item.ItemType);
};
a.title = loc("code_complete");
a.innerHTML = ``;
@@ -1801,7 +1801,7 @@ function updateInventory() {
a.onclick = function (event) {
event.preventDefault();
reAddToItemList(itemMap, "TechProjects", item.ItemType);
- removeGuildTechProject(item.ItemType);
+ debounce(removeGuildTechProject, item.ItemType);
};
a.title = loc("code_remove");
a.innerHTML = ``;