X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Ft%2Fedit_message.html;h=2e432d38920c66bdc27b5f5a7dda267ee92c8546;hb=04396cacf7511045afae5b27236b05fb1aca1c7a;hp=256b14e3db69a97caad648ff7b1dcdabd4b75486;hpb=a4d920e43133c5217d33e60ddb64758b86d092f0;p=citadel.git diff --git a/webcit/static/t/edit_message.html b/webcit/static/t/edit_message.html index 256b14e3d..2e432d389 100644 --- a/webcit/static/t/edit_message.html +++ b/webcit/static/t/edit_message.html @@ -159,6 +159,7 @@ function hide_attachments_form() { $('attachments_form').style.display = 'none'; + update_attachment_count(); } function show_attachments_form() { @@ -176,6 +177,18 @@ ); } + function update_attachment_count() { + p = 'r=' + CtdlRandomString(); + new Ajax.Updater( + 'num_attachments', + 'show_num_attachments', + { + method: 'get', + parameters: p + } + ); + } +