From: Art Cancro Date: Wed, 26 Oct 2022 03:30:42 +0000 (-0400) Subject: to, cc, subject in mail_compose() X-Git-Tag: v959~16 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2352dc30c074739244acefa61e6fcd7e01b250e0;p=citadel.git to, cc, subject in mail_compose() --- diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index 75931aa29..0d1f18066 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -33,13 +33,13 @@ function mail_render_one(msgnum, msg, target_div, include_controls) { + "" // begin buttons on right side + "" // Reply (mail is always Quoted) - + "" + + "" + " " + _("Reply") + "" + "" // Reply-All (mail is always Quoted) - + "" + + "" + " " + _("ReplyAll") + ""; @@ -216,7 +216,7 @@ 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, msgnum) { +function mail_compose(is_quoted, references, msgnum, m_to, m_cc, m_subject) { quoted_div_name = randomString(); // Make the "Write mail" button disappear. We're already there! @@ -238,7 +238,7 @@ function mail_compose(is_quoted, references, msgnum) { // Visible To: field, plus a box to make the CC/BCC lines appear + "
" + _("To:") + "
" + "
" - + "
" + + "
" + m_to + "
" + "
" + _("CC:") + "/" + _("BCC:") + "
" @@ -246,13 +246,13 @@ function mail_compose(is_quoted, references, msgnum) { // CC/BCC + "
" + _("CC:") + "
" - + "
" + + "
" + m_cc + "
" + "
" + _("BCC:") + "
" + "
" // Visible subject field + "
" + _("Subject:") + "
" - + "
" + + "
" + m_subject + "
" // Message composition box + "
" @@ -281,9 +281,9 @@ function mail_compose(is_quoted, references, msgnum) { document.getElementById("ctdl-main").innerHTML = compose_screen; mail_display_message(msgnum, document.getElementById(quoted_div_name), 0); - } + function make_cc_bcc_visible() { document.getElementById("ctdl-cc-bcc-buttons").style.display = "none"; document.getElementById("ctdl-compose-cc-label").style.display = "block"; diff --git a/webcit-ng/static/js/views.js b/webcit-ng/static/js/views.js index 971f6397b..85a3291a0 100644 --- a/webcit-ng/static/js/views.js +++ b/webcit-ng/static/js/views.js @@ -61,7 +61,7 @@ function entmsg_dispatcher() { forum_entmsg(); break; case views.VIEW_MAILBOX: - mail_compose(false, "", 0); + mail_compose(false, "", 0, "", "", ""); break; default: break;