]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/view_mail.js
deactivate_uploads() hides the window.
[citadel.git] / webcit-ng / static / js / view_mail.js
index 3071496e8612ae816dc420dfa93e8152a2186e3f..e015466f249a71d94061f89fb5c457871a2a2c26 100644 (file)
@@ -525,7 +525,7 @@ function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subjec
                document.getElementById("ctdl-compose-cc-field").style.display = "block";
        }
 
-       activate_uploads("ctdl-compose-mail");
+       activate_uploads("ctdl-editor-body");
 }
 
 // Called when the user clicks the button to make the hidden "CC" and "BCC" lines appear.
@@ -553,6 +553,7 @@ function msm_field(element_name, separator) {
 function mail_send_message() {
 
        document.body.style.cursor = "wait";
+       deactivate_uploads();
        let url = "/ctdl/r/" + escapeHTMLURI(current_room)
                + "/dummy_name_for_new_mail"
                + "?wefw="      + msm_field("ctdl_mc_references", "!")                          // references (if present)