From a06cc3d37bb96ddeafcc55aef5dfbe0b667afb93 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Mon, 13 Dec 2021 03:21:08 -0500 Subject: [PATCH] Make sure the "Lua error" GUI message is always visible --- static/application.js | 7 +++---- templates/index.html | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/static/application.js b/static/application.js index b5453619..2fb196e0 100644 --- a/static/application.js +++ b/static/application.js @@ -765,13 +765,13 @@ function dosubmit() { if(!memorymode && !gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) { return; } + input_text.val(""); + hideMessage(); + hidegenseqs(); socket.send({'cmd': 'submit', 'actionmode': adventure ? action_mode : 0, 'data': txt}); if(memorymode) { memorytext = input_text.val(); } - input_text.val(""); - hideMessage(); - hidegenseqs(); } function changemode() { @@ -1690,7 +1690,6 @@ $(document).ready(function(){ scrollToBottom(); } newly_loaded = false; - hideMessage(); } else if(msg.cmd == "scrolldown") { scrollToBottom(); } else if(msg.cmd == "updatechunk") { diff --git a/templates/index.html b/templates/index.html index a9c24054..028ac55b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@ - +