From: Art Cancro Date: Tue, 23 Nov 2021 21:24:50 +0000 (-0500) Subject: Got it working, now it's pretty X-Git-Tag: v941~21 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=c994a997c95509a5c43b0f7b0e97e720f6e84c95;p=citadel.git Got it working, now it's pretty --- diff --git a/webcit-ng/http.c b/webcit-ng/http.c index 36ca13052..51d50ce50 100644 --- a/webcit-ng/http.c +++ b/webcit-ng/http.c @@ -177,7 +177,7 @@ void perform_one_http_transaction(struct client_handle *ch) { syslog(LOG_DEBUG, "Client disconnected"); } else { - syslog(LOG_DEBUG, "< %s %s", h.method, h.uri); + syslog(LOG_DEBUG, "\033[33m\033[1m< %s %s\033[0m", h.method, h.uri); // If there is a request body, read it now. char *ccl = header_val(&h, "Content-Length"); diff --git a/webcit-ng/static/js/view_forum.js b/webcit-ng/static/js/view_forum.js index 823c983f3..3711a2aed 100644 --- a/webcit-ng/static/js/view_forum.js +++ b/webcit-ng/static/js/view_forum.js @@ -253,16 +253,10 @@ function open_reply_box(prefix, msgnum, is_quoted) { document.getElementById(new_div_name).innerHTML = replybox; document.getElementById(new_div_name).scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"}); - // This puts the focus and cursor in the edit box. + // These actions must happen *after* the initial render loop completes. setTimeout(function() { var tag = document.getElementById("ctdl-editor-body"); - - // Set cursor on focus - tag.focus(); - - // cursor - var sel = window.getSelection(); - sel.collapse(tag.firstChild, 0); - + tag.focus(); // sets the focus + window.getSelection().collapse(tag.firstChild, 0); // positions the cursor }, 0); }