From: Art Cancro Date: Wed, 2 Aug 2023 03:54:25 +0000 (-0900) Subject: began work on enumerating attachments in the mail view X-Git-Tag: v989~110 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=7bd2ae8388b56ccfbe37dd4ab1653e88963192ef;p=citadel.git began work on enumerating attachments in the mail view --- diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index edf6c7963..a647ed0a3 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -176,7 +176,7 @@ function mail_render_one(msgnum, msg, target_div, include_controls) { // Display the To: recipients, if any are present if (msg.rcpt) { outmsg += "
" + _("To:") + " "; - for (var r=0; r"; // end header } + // Display attachments, if any are present + if (msg.part) { + let display_attachments = 0; + for (let r=0; r " + msg.part[r].partnum + ": " + msg.part[r].filename + ""; + } + } + if (display_attachments > 0) { + outmsg += "
"; + } + } + + outmsg += "
" // begin body + msg.text