When an attachment is added or removed using the upload window,
also update the count in the button.
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) {