Attachments count is now updated in navbar
[citadel.git] / webcit / static / t / edit_message / attachments_pane.html
1 <div align="right">
2 <a href="javascript:hide_attachments_form();">
3 <?_("Close window")>&nbsp;<img src="static/closewindow.gif" border="0"></div>
4 </a>
5 <h2><img src="static/diskette_24x.gif" border="0">&nbsp;<?_("Attachments:")></h2>
6
7 <ul>
8 <?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")>
9 </ul>
10
11 <iframe id="upload_target" name="upload_target" src="" style="width:0;height:0;border:0">
12 (Hidden iFrame for uploads because ajax cannot handle files)
13 </iframe>
14
15 <form name="upload_attachment_form" id="upload_attachment_form" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" action="upload_attachment" target="upload_target">
16 <input type="hidden" name="nonce" value="<?NONCE>">
17
18 <div id="gonna_upload_this">
19 <input type="hidden" name="submit_action" value="">
20 <?_("Attach file:")>
21 <input name="attachfile" id="attachfile" class="attachfile" size=40 type="file" onChange="$('gonna_upload_this').style.display='none'; $('upload_throbber').style.display='block'; document.upload_attachment_form.submit(); $('attachfile').value=''; show_attachments_form(); update_attachment_count();">
22 </div>
23
24 <div id="upload_throbber" style="display:none">
25 <?_("Upload")>&nbsp;<img src="static/throbber.gif" border="0">
26 </div>
27
28 </form>