]> code.citadel.org Git - citadel.git/commitdiff
Cleaned up the editor-div-replacement thing
authorArt Cancro <ajc@citadel.org>
Mon, 3 Jan 2022 21:47:43 +0000 (16:47 -0500)
committerArt Cancro <ajc@citadel.org>
Mon, 3 Jan 2022 21:47:43 +0000 (16:47 -0500)
webcit-ng/static/js/view_forum.js

index 58eb3359f9bd46641c3d27dcc93e1bce5932c7c0..130f695f2d6e3f64434a2d72be9e692a9e5f9e0c 100644 (file)
@@ -406,14 +406,7 @@ function forum_save_message(editor_div_name) {
                                        }
                                }
 
-
-
-
-                               // change the name of the editor div to make it look like a regular message...
-                               // document.getElementById(editor_div_name).innerHTML = "FIXME render message " + new_msg_num;
-
-                               // MAKE WAY, HERE IT IS
-
+                               // After saving the message, load it back from the server and replace the editor div with it.
                                replace_editor_with_final_message = async() => {
                                        response = await fetch("/ctdl/r/" + escapeHTMLURI(current_room) + "/" + new_msg_num + "/json");
                                        if (response.ok) {
@@ -423,14 +416,6 @@ function forum_save_message(editor_div_name) {
                                }
                                replace_editor_with_final_message();
 
-
-
-
-
-
-
-
-
                        }
                        else {
                                error_message = request.responseText;