From 2bb782979db4e4a6082116bf32c565c82b779a31 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 11 Oct 2022 23:19:24 -0400 Subject: [PATCH] Make the 'Write mail' button disappear when we're already in the mail compose screen. --- webcit-ng/static/js/view_mail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index 27a5a0b9b..bf500e5a0 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -204,10 +204,14 @@ function render_mailbox_display() { // Compose a new mail message (called by the Reply button here, or by the dispatcher in views.js) function mail_compose(is_quoted, references, msgid) { + // Make the "Write mail" button disappear. We're already there! + document.getElementById("ctdl-newmsg-button").style.display = "none"; + // is_quoted true or false depending on whether the user selected "reply quoted" (is this appropriate for mail?) // references list of references, be sure to use this in a reply // msgid if a reply, the msgid of the most recent message in the chain, the one to which we are replying + // Now display the screen. document.getElementById("ctdl-main").innerHTML // Hidden values that we are storing right here in the document tree for later -- 2.39.2