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 = ``;