From d3e7de89cde525453188318a32a4e08fae62beae Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 21 Feb 2024 18:21:05 +0100 Subject: [PATCH] Disable send text button after dialog has been hidden --- public/scripts/ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 0b188a4..aaadcde 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -2319,6 +2319,11 @@ class SendTextDialog extends Dialog { text: this.$text.innerText }); this.hide(); + } + + hide() { + super.hide(); + this.$submit.setAttribute('disabled', true); setTimeout(() => this.$text.innerText = "", 300); } }