aboutsummaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-10-11 13:15:11 -0300
committerFChannel <>2022-06-19 12:53:29 -0700
commit7835f24687abaa1e5254c5c78d985d4bb78abcfc (patch)
treea3e5f01a433284f4096b66fbe4bf4e6fe1523ff8 /static/js
parent29adc517ab528880fd249e85bb67a8a79ebfb815 (diff)
couple of style changes + reply at footer is back
Diffstat (limited to 'static/js')
-rw-r--r--static/js/posts.js6
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"));