Stability fixes for back/retry re genseqs/useprompt

* Back and Retry buttons no longer pop a story chunk while in the
  "Select sequence to keep" menu
* No longer freezes if you retry with no story chunks beyond the initial
  prompt chunk
* When "Always Add Prompt" is on, allow Retry even if the prompt is the
  only chunk in the story
* Added error messages for Back and Retry buttons
This commit is contained in:
Gnome Ann
2021-08-25 14:42:37 -04:00
parent cbdf3fa037
commit cf677c60fc
2 changed files with 14 additions and 4 deletions

View File

@@ -1070,11 +1070,13 @@ $(document).ready(function(){
});
button_actretry.on("click", function(ev) {
hideMessage();
socket.send({'cmd': 'retry', 'data': ''});
hidegenseqs();
});
button_actback.on("click", function(ev) {
hideMessage();
socket.send({'cmd': 'back', 'data': ''});
hidegenseqs();
});