]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/t/edit_message/attachments_pane.html
reverted 755 permissions on files to 644. Wherever that came from, sorry...
[citadel.git] / webcit / static / t / edit_message / attachments_pane.html
index b3d1677f463e1b381109e7f19bc584201d6775e5..edec77866ad2ab6fdd18c22ecba7db8d7eb0d5e2 100644 (file)
@@ -1,23 +1,23 @@
 <div align="right">
-<a href="javascript:hide_attachments_form();">
-<?_("Close window")>&nbsp;<img src="static/closewindow.gif"></div>
-</a>
-<h2><img src="static/diskette_24x.gif">&nbsp;<?_("Attachments:")></h2>
+       <a href="javascript:hide_attachments_form();">
+               <?_("Close window")>&nbsp;<img src="static/icons/closewindow.gif" border="0"></div>
+       </a>
+       <h2><img src="static/icons/essen/16x16/attachement.png">&nbsp;<?_("Attachments:")></h2>
+       <ul><?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")></ul>
 
-<ul>
-<li>FIXME this is teh not done
-<?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")>
-<li>FIXME <?_("Add")> <?_("Remove")>
-</ul>
+       <iframe id="upload_target" name="upload_target" src="" style="width:0;height:0;border:0">
+               (Hidden iFrame for uploads because ajax cannot handle files)
+       </iframe>
 
-<iframe id="upload_target" name="upload_target" src="" style="width:100;height:100;border:4px solid #fff;">
-Missing iframe support?  Teh b0rwser will not work!!!1
-</iframe>
+       <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">
+               <input type="hidden" name="nonce" value="<?NONCE>">
+               <div id="gonna_upload_this">
+                       <input type="hidden" name="submit_action" value="">
+                       <?_("Attach file:")>
+                       <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();">
+               </div>
 
-<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">
-<input type="hidden" name="nonce" value="<?NONCE>">
-
-<input type="hidden" name="submit_action" value="">
-<?_("Attach file:")>
-<input name="attachfile" id="attachfile" class="attachfile" size=40 type="file" onChange="document.upload_attachment_form.submit(); $('attachfile').value=''; show_attachments_form();">
-</form>
+               <div id="upload_throbber" style="display:none">
+                       <?_("Upload")>&nbsp;<img src="static/icons/throbber.gif" border="0">
+               </div>
+       </form>