diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index fcff2a57c..cb727c9a3 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -135,10 +135,10 @@ function setWorldInfoSettings(settings, data) { world_info = settings.world_info ?? {} - $("#world_info_depth_counter").text(world_info_depth); + $("#world_info_depth_counter").val(world_info_depth); $("#world_info_depth").val(world_info_depth); - $("#world_info_budget_counter").text(world_info_budget); + $("#world_info_budget_counter").val(world_info_budget); $("#world_info_budget").val(world_info_budget); $("#world_info_recursive").prop('checked', world_info_recursive); @@ -150,7 +150,7 @@ function setWorldInfoSettings(settings, data) { $("#world_info_character_strategy").val(world_info_character_strategy); $("#world_info_budget_cap").val(world_info_budget_cap); - $("#world_info_budget_cap_counter").text(world_info_budget_cap); + $("#world_info_budget_cap_counter").val(world_info_budget_cap); world_names = data.world_names?.length ? data.world_names : []; @@ -2043,13 +2043,13 @@ jQuery(() => { $(document).on("input", "#world_info_depth", function () { world_info_depth = Number($(this).val()); - $("#world_info_depth_counter").text($(this).val()); + $("#world_info_depth_counter").val($(this).val()); saveSettings(); }); $(document).on("input", "#world_info_budget", function () { world_info_budget = Number($(this).val()); - $("#world_info_budget_counter").text($(this).val()); + $("#world_info_budget_counter").val($(this).val()); saveSettings(); }); @@ -2080,7 +2080,7 @@ jQuery(() => { $('#world_info_budget_cap').on('input', function () { world_info_budget_cap = Number($(this).val()); - $("#world_info_budget_cap_counter").text(world_info_budget_cap); + $("#world_info_budget_cap_counter").val(world_info_budget_cap); saveSettings(); });