This commit is contained in:
ebolam
2023-04-26 09:25:27 -04:00
parent de080ed19e
commit 56145fc8bc

View File

@@ -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);