From 45e4a278dc4cd08c5275f7556d70a73d653819d4 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 26 Apr 2023 16:16:13 -0400 Subject: [PATCH] Paste bug fix --- static/koboldai.js | 4 ++++ templates/index_new.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index f9a4c666..36013b38 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -3065,6 +3065,10 @@ function set_edit(event) { return true; } +function check_game_after_paste() { + setTimeout(function() {savegametextchanges();}, 500); +} + function gametextwatcher(records) { //Here we want to take care of two possible events //User deleted an action. For this we'll restore the action and set it's text to "" and mark it as dirty diff --git a/templates/index_new.html b/templates/index_new.html index bf2b2c85..99b8c941 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -53,7 +53,7 @@
-
+