From: Art Cancro Date: Wed, 12 Oct 2022 03:19:24 +0000 (-0400) Subject: Make the 'Write mail' button disappear when we're already in the mail compose screen. X-Git-Tag: v959~28 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2bb782979db4e4a6082116bf32c565c82b779a31;p=citadel.git Make the 'Write mail' button disappear when we're already in the mail compose screen. --- 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