]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/t/edit/message.html
adjust case
[citadel.git] / webcit / static / t / edit / message.html
index 4afa0b165b6a196aba8e003e0f6a6046bc064a45..e5c2ea8128e1661a03316b331b774c71c3a9f50a 100644 (file)
@@ -3,11 +3,8 @@
 <?ROOMBANNER>
 <div id="content">
 
-<div id="attachments_form">
-    <div id="loading">
-      <p><img src="static/webcit_icons/throbber.gif" alt=""></p>
-      <p><?_("Loading")></p>
-    </div>
+<div id="attachments_form" style="display:none">
+<?=("edit_message_attachments_pane")>
 </div>
 
 <div class="entmsg" id="entmsg"><form name="enterform" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" action="post">
@@ -17,6 +14,7 @@
 <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="" value="<?MAIL:SUMM:INREPLYTO()>">
 <input type="hidden" name="submit_action" value="">
 
 <table width="100%" class="edit_msg_table">
 
        function show_attachments_form() {
                $('attachments_form').style.display = 'block';
-
-               p = 'template=edit_message_attachments_pane&r=' + CtdlRandomString();
-               new Ajax.Updater(
-                       'attachments_form',
-                       'do_template',
-                       {
-                               method: 'get',
-                               parameters: p,
-                               evalScripts: true
-                       }
-               );
+               update_attachment_count();
        }
 
        function update_attachment_count() {
-               p = 'r=' + CtdlRandomString();
+               p = 'r=' + ctdlRandomString();
                new Ajax.Updater(
                        'num_attachments',
                        'show_num_attachments',
                );
        }
 
-       function remove_attachment(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>
 </div>
 </div>