X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fstatic%2Fjs%2Fview_mail.js;h=fac046decf109e5b9fc85b94144d5967d1dff155;hb=28c9012d1e3ab1d460fdda87d4b0a16423dda99a;hp=d524c7988f1a71b4d6a86f1846f21629eb332b46;hpb=d72c8680f895706d045668a0f4bc5a1edadb467c;p=citadel.git diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index d524c7988..fac046dec 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -343,7 +343,7 @@ function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subjec // The button bar is a Grid element, and is also a Flexbox container. + "
" - + " " + _("Send message") + "" + + " " + _("Send message") + "" + "" + _("Save to Drafts") + "" + "" + _("Attachments:") + " 0" + "" + "" + _("Contacts") + "" @@ -367,7 +367,7 @@ function make_cc_bcc_visible() { } -// Helper function for mail_save_messages() to extract form values. +// Helper function for mail_send_messages() to extract form values. // (We have to replace "|" with "!" because "|" is a field separator in the Citadel protocol) function msm_field(element_name, separator) { return (document.getElementById(element_name).innerHTML).replaceAll("|",separator); @@ -375,7 +375,7 @@ function msm_field(element_name, separator) { // Save the posted message to the server -function mail_save_message() { +function mail_send_message() { document.body.style.cursor = "wait"; url = "/ctdl/r/" + escapeHTMLURI(current_room) @@ -386,6 +386,7 @@ function mail_save_message() { + "&mailcc=" + msm_field("ctdl-compose-cc-field", ",") // Cc: (if present) + "&mailbcc=" + msm_field("ctdl-compose-bcc-field", ",") // Bcc: (if present) ; + console.log(url); boundary = randomString(); body_text = "--" + boundary + "\r\n"