Attachments count is now updated in navbar
[citadel.git] / webcit / static / t / edit_message.html
index 256b14e3db69a97caad648ff7b1dcdabd4b75486..2e432d38920c66bdc27b5f5a7dda267ee92c8546 100644 (file)
 
        function hide_attachments_form() {
                $('attachments_form').style.display = 'none';
+               update_attachment_count();
        }
 
        function show_attachments_form() {
                );
        }
 
+       function update_attachment_count() {
+               p = 'r=' + CtdlRandomString();
+               new Ajax.Updater(
+                       'num_attachments',
+                       'show_num_attachments',
+                       {
+                               method: 'get',
+                               parameters: p
+                       }
+               );
+       }
+
 </script>
 </div>
 </div>