From: Art Cancro Date: Thu, 18 Nov 2021 01:25:23 +0000 (-0500) Subject: more work on the reply box X-Git-Tag: v941~28 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=0c4622061708be8b14d280788ce7cbf63742b0da;p=citadel.git more work on the reply box --- diff --git a/webcit-ng/static/js/view_forum.js b/webcit-ng/static/js/view_forum.js index 2a6e622ff..ab09f68d8 100644 --- a/webcit-ng/static/js/view_forum.js +++ b/webcit-ng/static/js/view_forum.js @@ -185,10 +185,17 @@ function forum_render_one(prefix, msgnum, scroll_to) { // Open a reply box directly below a specific message function open_reply_box(prefix, msgnum, is_quoted) { + target_div_name = prefix+msgnum; + new_div_name = prefix + "_reply_to_" + msgnum; + document.getElementById(target_div_name).outerHTML += "
reply box put here
"; + + replybox = "
" // begin message wrapper + + "This is going to be the reply box. We will put ... things here.
" + + "We are replying to message number " + msgnum + "
"; + if (is_quoted) { + replybox += "and it is a quoted reply.
"; + } + replybox += "
"; // end wrapper - target_div = prefix+msgnum; - new_div = prefix + "_reply_to_" + msgnum; - existing = document.getElementById(target_div).outerHTML; - new_text = existing + "
This is some more schtuff!
"; - document.getElementById(target_div).outerHTML = new_text; + document.getElementById(new_div_name).innerHTML = replybox; }