From 2071daf3357e28702d8e520171f7d966907cdff1 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Mon, 23 Aug 2021 13:22:50 -0400 Subject: [PATCH] Remove the Delete button --- static/application.js | 10 ++-------- templates/index.html | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/static/application.js b/static/application.js index ae75245c..97431647 100644 --- a/static/application.js +++ b/static/application.js @@ -24,7 +24,6 @@ var button_send; var button_actmem; var button_actback; var button_actretry; -var button_delete; var button_actwi; var game_text; var input_text; @@ -401,7 +400,7 @@ function enterMemoryMode() { setmodevisibility(false); showMessage("Edit the memory to be sent with each request to the AI."); button_actmem.html("Cancel"); - hide([button_actback, button_actretry, button_delete, button_actwi]); + hide([button_actback, button_actretry, button_actwi]); // Display Author's Note field anote_menu.slideDown("fast"); } @@ -573,7 +572,7 @@ function setStartState() { enableSendBtn(); enableButtons([button_actmem, button_actwi]); disableButtons([button_actback, button_actretry]); - hide([wi_menu, button_delete]); + hide([wi_menu]); show([game_text, button_actmem, button_actwi, button_actback, button_actretry]); hideMessage(); hideWaitAnimation(); @@ -715,7 +714,6 @@ $(document).ready(function(){ button_actmem = $('#btn_actmem'); button_actback = $('#btn_actundo'); button_actretry = $('#btn_actretry'); - button_delete = $('#btn_delete'); button_actwi = $('#btn_actwi'); game_text = $('#gametext'); input_text = $('#input_text'); @@ -1025,10 +1023,6 @@ $(document).ready(function(){ hidegenseqs(); }); - button_delete.on("click", function(ev) { - socket.send({'cmd': 'delete', 'data': ''}); - }); - button_actmem.on("click", function(ev) { socket.send({'cmd': 'memory', 'data': ''}); }); diff --git a/templates/index.html b/templates/index.html index 55655481..f7716bfb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -95,7 +95,6 @@ -