]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/view_forum.js
Revert previous commit because it didn't work. Furthermore, remove the content-lengt...
[citadel.git] / webcit-ng / static / js / view_forum.js
index fb9121b58fe35c3c5f67beabd3918f3c75577603..56b6a589b1e100fa73b3bdc8704d40170ff0cb63 100644 (file)
@@ -263,14 +263,6 @@ function cancel_post(div_name) {
 }
 
 
-// Save the posted message to the server
-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";
@@ -279,7 +271,6 @@ function save_message(div_name, reply_to_msgnum) {
        var request = new XMLHttpRequest();
        request.open("PUT", url, true);
        request.setRequestHeader("Content-type", "text/html");
-       request.setRequestHeader("Content-length", msg_text.length);
        request.onreadystatechange = function() {
                if (request.readyState == 4) {
                        if (Math.trunc(request.status / 100) == 2) {