2 <script type="text/javascript">
5 <script type="text/javascript" src="markdown/js/epiceditor.js"></script>
6 <?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
10 <div id="attachments_form">
12 <p><img src="static/webcit_icons/throbber.gif" alt=""></p>
13 <p><?_("Loading")></p>
20 <textarea id="msgtext" cols="80" rows="15"></textarea>
26 <div style="display:none" id="submit-o-matic"><ul>
28 <a href="javascript:submit_post('post');">
29 <img src="static/webcit_icons/essen/16x16/check.png" alt="">
30 <span class="navbar_link">
31 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><?_("Send message")><?!("X", 1)>
32 <??("COND:BSTR", 2, "__RCPTREQUIRED")><?_("Post message")><?!("X", 2)>
37 <a href="javascript:submit_post('draft');">
38 <img src="static/webcit_icons/essen/16x16/draft.png" alt="">
39 <span class="navbar_link">
40 <?_("Save to Drafts")>
45 <a href="javascript:show_attachments_form();">
46 <img src="static/webcit_icons/essen/16x16/attachement.png" alt="">
47 <span class="navbar_link">
49 <span id="num_attachments"><?MSG:NATTACH></span>
54 <a href="javascript:submit_post('cancel');">
55 <img src="static/webcit_icons/essen/16x16/abort.png" alt="">
56 <span class="navbar_link">
61 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><li>
62 <a href="javascript:PopOpenAddressBook('recp_id|<?_("To:")>|cc_id|<?_("CC:")>|bcc_id|<?_("BCC:")>');">
63 <img src="static/webcit_icons/essen/16x16/contact.png" alt="">
64 <span class="navbar_link">
72 <script type="text/javascript">
74 $("navbar").innerHTML = $("submit-o-matic").innerHTML;
77 function submit_post(which_action) {
78 var p = { "postseq":"<?DATE:NOW:NO>",
79 "return_to":"<?BSTR("return_to")>",
81 "force_room":"<?THISROOM:NAME("X")>",
82 "references":"<?BSTR("references")>",
83 "page":"<?BSTR("page")>",
86 "msgtext" : editor.exportFile()
89 new Ajax.Request('post', {
92 onComplete: function(transport) { ajax_important_message(transport.responseText.substr(4));}
96 function hide_attachments_form() {
97 $('attachments_form').style.display = 'none';
98 update_attachment_count();
101 function show_attachments_form() {
102 $('attachments_form').style.display = 'block';
104 p = 'template=edit_message_attachments_pane&r=' + CtdlRandomString();
116 function update_attachment_count() {
117 p = 'r=' + CtdlRandomString();
120 'show_num_attachments',
128 function remove_attachment(which_one) {
129 p = 'which_attachment=' + which_one + '&r=' + CtdlRandomString();
136 onComplete: function(){
137 show_attachments_form();
138 update_attachment_count();
146 <script type="text/javascript">
147 var editor = new EpicEditor().load();
149 <?=("addressbook_popup")>