diff --git a/koboldai_settings.py b/koboldai_settings.py index 5ee9d3c4..e90f7cf4 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -872,7 +872,7 @@ class KoboldStoryRegister(object): break if not found: - self.actions[self.action_count+1]['Options'].append({"text": item, "Pinned": False, "Previous Selection": False, "Edited": False, "Probabilities": []}) + self.actions[self.action_count+1]['Options'].append({"text": option, "Pinned": False, "Previous Selection": False, "Edited": False, "Probabilities": []}) else: old_options = None self.actions[self.action_count+1] = {"Selected Text": "", "Selected Text Length": 0, "In AI Input": False, "Options": [{"text": x, "Pinned": False, "Previous Selection": False, "Edited": False, "Probabilities": []} for x in option_list]} diff --git a/static/koboldai.js b/static/koboldai.js index 3c75764c..99decd3d 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -535,6 +535,12 @@ function var_changed(data) { for (item of elements_to_change) { item.setAttribute(data.classname.replace(" ", "_")+"_"+data.name.replace(" ", "_"), fix_text(data.value)); } + + //alternative syncing method to tooltip + var elements_to_change = document.getElementsByClassName("var_sync_tooltip_"+data.classname.replace(" ", "_")+"_"+data.name.replace(" ", "_")); + for (item of elements_to_change) { + item.title = fix_text(data.value); + } } //if we changed the gen amount, make sure our option area is set/not set