From b60f70a6fc5e2900fad5648ca0f14a55b3aa1a3e Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 14 Dec 2022 14:46:35 -0500 Subject: [PATCH] More Image Generation Stuff --- static/koboldai.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/koboldai.js b/static/koboldai.js index 309beaff..6bbc986a 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -783,6 +783,7 @@ function var_changed(data) { if ((data.classname == 'actions') && (data.name == 'Action Count')) { current_action = data.value; + document.getElementsByClassName("action_image")[0].setAttribute("chunk", data.value); if (current_action <= 0) { //console.log("setting action_count to "+current_action); const storyPrompt = $el("#story_prompt"); @@ -973,6 +974,7 @@ function var_changed(data) { if ((data.classname == "actions") && (data.name == "Action Count")) { var option_container = document.getElementById("Select Options"); var current_chunk = parseInt(document.getElementById("action_count").textContent)+1; + var children = option_container.children; for (var i = 0; i < children.length; i++) { var chunk = children[i];