]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/view_forum.js
Moved the remaining else blocks
[citadel.git] / webcit-ng / static / js / view_forum.js
index edf0a971ba269b3004fffe0695a7f8fa0950e6fc..fb9121b58fe35c3c5f67beabd3918f3c75577603 100644 (file)
@@ -264,8 +264,15 @@ function cancel_post(div_name) {
 
 
 // Save the posted message to the server
-function save_message(div_name, reply_to_msgnum) {
+function Xsave_message(div_name, reply_to_msgnum) {
+       msg_text = "<html><body>" + document.getElementById("ctdl-editor-body").innerHTML + "</body></html>\n";
+       m = btoa(msg_text);
+       alert(m);
+}
 
+
+// Save the posted message to the server
+function save_message(div_name, reply_to_msgnum) {
        msg_text = "<html><body>" + document.getElementById("ctdl-editor-body").innerHTML + "</body></html>\n";
        url = "/ctdl/r/" + escapeHTMLURI(current_room) + "/dummy_name_for_new_message";