From 7835f24687abaa1e5254c5c78d985d4bb78abcfc Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Mon, 11 Oct 2021 13:15:11 -0300 Subject: couple of style changes + reply at footer is back --- static/js/posts.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'static/js/posts.js') diff --git a/static/js/posts.js b/static/js/posts.js index b9e9706..87f6228 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -160,6 +160,7 @@ function quote(actorName, opid, id) sessionStorage.setItem("element-closed-reply", false); var box = document.getElementById("reply-box"); var header = document.getElementById("reply-header"); + var header_text = document.getElementById("reply-header-text"); var comment = document.getElementById("reply-comment"); var inReplyTo = document.getElementById("inReplyTo-box"); @@ -176,7 +177,7 @@ function quote(actorName, opid, id) if (inReplyTo.value != opid) comment.value = ""; - header.innerText = "Replying to Thread No. " + shortURL(actorName, opid); + header_text.innerText = "Replying to Thread No. " + shortURL(actorName, opid); inReplyTo.value = opid; sessionStorage.setItem("element-reply-actor", actorName); sessionStorage.setItem("element-reply-id", inReplyTo.value); @@ -305,12 +306,13 @@ const stateLoadHandler = function(event){ if(sessionStorage.getItem("element-closed-reply") === "false"){ var box = document.getElementById("reply-box"); var header = document.getElementById("reply-header"); + var header_text = document.getElementById("reply-header-text"); var comment = document.getElementById("reply-comment"); var inReplyTo = document.getElementById("inReplyTo-box"); header.onmousedown = dragMouseDown; inReplyTo.value = parseInt(sessionStorage.getItem("element-reply-id")); - header.innerText = "Replying to Thread No. " + shortURL(sessionStorage.getItem("element-reply-actor"), sessionStorage.getItem("element-reply-id")); + header_text.innerText = "Replying to Thread No. " + shortURL(sessionStorage.getItem("element-reply-actor"), sessionStorage.getItem("element-reply-id")); comment.value = sessionStorage.getItem("element-reply-comment"); pos1 = parseInt(sessionStorage.getItem("pos1")); -- cgit v1.2.3