Make sure the "Lua error" GUI message is always visible

This commit is contained in:
Gnome Ann 2021-12-13 03:21:08 -05:00
parent d870f193b2
commit a06cc3d37b
2 changed files with 4 additions and 5 deletions

View File

@ -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") {

View File

@ -7,7 +7,7 @@
<script src="static/jquery-3.6.0.min.js"></script>
<script src="static/jquery-ui.sortable.min.js"></script>
<script src="static/socket.io.min.js"></script>
<script src="static/application.js?ver=1.16.4d"></script>
<script src="static/application.js?ver=1.16.4e"></script>
<script src="static/bootstrap.min.js"></script>
<script src="static/bootstrap-toggle.min.js"></script>
<script src="static/rangy-core.min.js"></script>