From: Art Cancro Date: Sun, 6 Nov 2022 23:03:00 +0000 (-0500) Subject: Make the CC: line appear if there is already something in it. X-Git-Tag: v959~7 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=d72c8680f895706d045668a0f4bc5a1edadb467c;p=citadel.git Make the CC: line appear if there is already something in it. --- diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index 174178e0c..d524c7988 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -353,13 +353,15 @@ function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subjec document.getElementById("ctdl-main").innerHTML = compose_screen; mail_display_message(quoted_msgnum, document.getElementById(quoted_div_name), 0); + if (m_cc) { + document.getElementById("ctdl-compose-cc-label").style.display = "block"; + document.getElementById("ctdl-compose-cc-field").style.display = "block"; + } } function make_cc_bcc_visible() { document.getElementById("ctdl-cc-bcc-buttons").style.display = "none"; - document.getElementById("ctdl-compose-cc-label").style.display = "block"; - document.getElementById("ctdl-compose-cc-field").style.display = "block"; document.getElementById("ctdl-compose-bcc-label").style.display = "block"; document.getElementById("ctdl-compose-bcc-field").style.display = "block"; }