mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Bug Fix
This commit is contained in:
@@ -3058,7 +3058,9 @@ function set_edit(event) {
|
|||||||
for (item of document.getElementsByClassName("editing")) {
|
for (item of document.getElementsByClassName("editing")) {
|
||||||
item.classList.remove("editing");
|
item.classList.remove("editing");
|
||||||
}
|
}
|
||||||
chunk.classList.add("editing");
|
if (chunk != game_text) {
|
||||||
|
chunk.classList.add("editing");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -3161,7 +3163,7 @@ function savegametextchanges() {
|
|||||||
if (chunk_id == -1) {
|
if (chunk_id == -1) {
|
||||||
chunk = document.getElementById("story_prompt");
|
chunk = document.getElementById("story_prompt");
|
||||||
} else {
|
} else {
|
||||||
chunk = document.getElementById("Selected Text Chunk " + chunk);
|
chunk = document.getElementById("Selected Text Chunk " + chunk_id);
|
||||||
}
|
}
|
||||||
if (chunk) {
|
if (chunk) {
|
||||||
update_game_text(parseInt(chunk.getAttribute("chunk")), chunk.innerText);
|
update_game_text(parseInt(chunk.getAttribute("chunk")), chunk.innerText);
|
||||||
|
Reference in New Issue
Block a user