diff options
author | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-10-11 13:15:11 -0300 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 7835f24687abaa1e5254c5c78d985d4bb78abcfc (patch) | |
tree | a3e5f01a433284f4096b66fbe4bf4e6fe1523ff8 /static/js/posts.js | |
parent | 29adc517ab528880fd249e85bb67a8a79ebfb815 (diff) |
couple of style changes + reply at footer is back
Diffstat (limited to 'static/js/posts.js')
-rw-r--r-- | static/js/posts.js | 6 |
1 files changed, 4 insertions, 2 deletions
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")); |