Won't freeze anymore if you delete the prompt
This commit is contained in:
parent
7059c18f70
commit
90e558cf3f
|
@ -1429,6 +1429,8 @@ def inlinedelete(chunk):
|
|||
# Don't delete prompt
|
||||
if(chunk == 0):
|
||||
# Send error message
|
||||
refresh_story()
|
||||
emit('from_server', {'cmd': 'errmsg', 'data': "Cannot delete the prompt."})
|
||||
emit('from_server', {'cmd': 'editmode', 'data': 'false'}, broadcast=True)
|
||||
else:
|
||||
del vars.actions[chunk-1]
|
||||
|
|
|
@ -852,6 +852,7 @@ $(document).ready(function(){
|
|||
}, 5);
|
||||
}
|
||||
newly_loaded = false;
|
||||
hideMessage();
|
||||
} else if(msg.cmd == "scrolldown") {
|
||||
setTimeout(function () {
|
||||
$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000);
|
||||
|
|
Loading…
Reference in New Issue