Close attachments window on Cancel
authorArt Cancro <ajc@citadel.org>
Sun, 24 Sep 2023 19:38:48 +0000 (15:38 -0400)
committerArt Cancro <ajc@citadel.org>
Sun, 24 Sep 2023 19:38:48 +0000 (15:38 -0400)
libcitadel/lib/libcitadel.so [new file with mode: 0755]
webcit-ng/static/js/view_mail.js

diff --git a/libcitadel/lib/libcitadel.so b/libcitadel/lib/libcitadel.so
new file mode 100755 (executable)
index 0000000..48b0c5e
Binary files /dev/null and b/libcitadel/lib/libcitadel.so differ
index 4bcb2886c216cfd01393d3e277a9a3777047d537..8fac46efaaa8c72ae54ddfdae88925cbf9f98dce 100644 (file)
@@ -516,7 +516,7 @@ function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subjec
                + "<span class=\"ctdl-msg-button\">" + _("Save to Drafts") + "</span>"
                + "<span class=\"ctdl-msg-button\" onClick=\"show_or_hide_attachments()\"><i class=\"fa fa-paperclip\" style=\"color:grey\"></i> " + _("Attachments:") + " <span id=\"ctdl_num_attachments\">" + num_attachments + "</span></span>"
                + "<span class=\"ctdl-msg-button\">" + _("Contacts") + "</span>"
-               + "<span class=\"ctdl-msg-button\" onClick=\"gotoroom(current_room)\"><i class=\"fa fa-trash\" style=\"color:red\"></i> " + _("Cancel") + "</span>"
+               + "<span class=\"ctdl-msg-button\" onClick=\"document.getElementById('ctdl_big_modal').style.display='none';gotoroom(current_room)\"><i class=\"fa fa-trash\" style=\"color:red\"></i> " + _("Cancel") + "</span>"
                + "</div>"
        ;