From: Art Cancro Date: Wed, 13 Dec 2023 02:21:19 +0000 (-0500) Subject: Keep the "Attachments:" button updated. X-Git-Tag: v997~76 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=15cfe37b6e19816adb340ad94600e868d2804399 Keep the "Attachments:" button updated. When an attachment is added or removed using the upload window, also update the count in the button. --- diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index 98eba01c7..d559544b2 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -551,7 +551,8 @@ function mail_compose(references, quoted_msgnum, m_to, m_cc, m_subject) { document.getElementById("ctdl-compose-cc-field").style.display = "block"; } - activate_uploads("ctdl-editor-body"); + activate_uploads("ctdl-editor-body"); // create the attachments window + attachment_counter_divs.push("ctdl_num_attachments"); // make the Attachments: count at the bottom update too // If this is a quoted reply, render the original message into the div we set up earlier. if (is_quoted) {