From 15cfe37b6e19816adb340ad94600e868d2804399 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 12 Dec 2023 21:21:19 -0500 Subject: [PATCH] Keep the "Attachments:" button updated. When an attachment is added or removed using the upload window, also update the count in the button. --- webcit-ng/static/js/view_mail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2