MARKDOWN: add epic editor
[citadel.git] / webcit / static / t / edit_message.html
index 059b96c0b221ed49a7e806a4d9e5ea4cc23a86aa..4afa0b165b6a196aba8e003e0f6a6046bc064a45 100644 (file)
@@ -1,11 +1,11 @@
 <?=("head")>
-<?=("important_msg")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
+<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
 <?ROOMBANNER>
 <div id="content">
 
 <div id="attachments_form">
     <div id="loading">
-      <p><img src="static/throbber.gif" alt=""></p>
+      <p><img src="static/webcit_icons/throbber.gif" alt=""></p>
       <p><?_("Loading")></p>
     </div>
 </div>
@@ -14,7 +14,7 @@
 <input type="hidden" name="postseq" value="<?DATE:NOW:NO>">
 <input type="hidden" name="return_to" value="<?BSTR("return_to")>">
 <input type="hidden" name="nonce" value="<?NONCE>">
-<input type="hidden" name="force_room" value="<?ROOMNAME("X")>">
+<input type="hidden" name="force_room" value="<?THISROOM:NAME("X")>">
 <input type="hidden" name="references" value="<?BSTR("references")>">
 <input type="hidden" name="page" value="<?BSTR("page")>">
 <input type="hidden" name="submit_action" value="">
@@ -44,7 +44,7 @@
 </select>
 <?!("X", 4)>
 
- <i><?_("in")></i> <?ROOMNAME></td></tr>
+ <i><?_("in")></i> <?THISROOM:NAME></td></tr>
 
 <?!("COND:BSTR", 5, "__RCPTREQUIRED")>
 <tr>
 <div style="display:none" id="submit-o-matic"><ul>
 <li>
        <a href="javascript:submit_post('post');">
-               <img src="static/newmess3_24x.gif" alt="" width="24" height="24">
+               <img src="static/webcit_icons/essen/16x16/check.png" alt="">
                <span class="navbar_link">
                <?!("COND:BSTR", 1, "__RCPTREQUIRED")><?_("Send message")><?!("X", 1)>
                <??("COND:BSTR", 2, "__RCPTREQUIRED")><?_("Post message")><?!("X", 2)>
 </li>
 <li>
        <a href="javascript:submit_post('draft');">
-               <img src="static/folder_closed.gif" alt="" width="24" height="24">
+               <img src="static/webcit_icons/essen/16x16/draft.png" alt="">
                <span class="navbar_link">
                <?_("Save to Drafts")>
                </span>
 </li>
 <li>
        <a href="javascript:show_attachments_form();">
-               <img src="static/diskette_24x.gif" alt="" width="24" height="24">
+               <img src="static/webcit_icons/essen/16x16/attachement.png" alt="">
                <span class="navbar_link">
                <?_("Attachments:")>
-               <span id="num_attachments">0</span>
+               <span id="num_attachments"><?MSG:NATTACH></span>
                </span>
        </a>
 </li>
 <li>
        <a href="javascript:submit_post('cancel');">
-               <img src="static/closewindow.gif" alt="">
+               <img src="static/webcit_icons/essen/16x16/abort.png" alt="">
                <span class="navbar_link">
                <?_("Cancel")>
                </span>
 </li>
 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><li>
        <a href="javascript:PopOpenAddressBook('recp_id|<?_("To:")>|cc_id|<?_("CC:")>|bcc_id|<?_("BCC:")>');">
-               <img src="static/viewcontacts_24x.gif" alt="" width="24" height="24">
+               <img src="static/webcit_icons/essen/16x16/contact.png" alt="">
                <span class="navbar_link">
                <?_("Contacts")>
                </span>
        }
 
        function remove_attachment(which_one) {
-               alert('FIXME ' + which_one);
+               p = 'which_attachment=' + which_one + '&r=' + CtdlRandomString();
+               new Ajax.Updater(
+                       'gonna_upload_this',
+                       'remove_attachment',
+                       {
+                               method: 'get',
+                               parameters: p,
+                               onComplete: function(){
+                                       show_attachments_form();
+                                       update_attachment_count();
+                               }
+                       }
+               );
        }
 
 </script>