aboutsummaryrefslogtreecommitdiff
path: root/static/js/posts.js
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 21:42:39 -0800
committerFChannel <=>2021-01-28 21:42:39 -0800
commit1af3f64d7d90e3c6b2fa5b119dd2489a5c4c8247 (patch)
tree234eec5a346ebf298ba14706d76781eaa1bfbea0 /static/js/posts.js
parente8cfabbfa36dd9cba293b7015a55c371edf3d1d6 (diff)
reply popup box bottom html
Diffstat (limited to 'static/js/posts.js')
-rw-r--r--static/js/posts.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/static/js/posts.js b/static/js/posts.js
index 805c1c1..1cb032e 100644
--- a/static/js/posts.js
+++ b/static/js/posts.js
@@ -180,7 +180,12 @@ function quote(actorName, opid, id)
var inReplyTo = document.getElementById("inReplyTo-box");
var w = window.innerWidth / 2 - 200;
- var h = document.getElementById(id + "-content").offsetTop - 448;
+ if(id == "reply") {
+ var h = document.getElementById(id + "-content").offsetTop - 548;
+ } else {
+ var h = document.getElementById(id + "-content").offsetTop - 448;
+ }
+
box.setAttribute("style", "display: block; position: absolute; width: 400px; height: 550px; z-index: 9; top: " + h + "px; left: " + w + "px; padding: 5px;");
@@ -191,10 +196,12 @@ function quote(actorName, opid, id)
header.innerText = "Replying to Thread No. " + shortURL(actorName, opid);
inReplyTo.value = opid;
- if(comment.value != "")
- comment.value += "\n>>" + id;
- else
- comment.value += ">>" + id;
+ if(id != "reply") {
+ if(comment.value != "")
+ comment.value += "\n>>" + id;
+ else
+ comment.value += ">>" + id;
+ }
dragElement(header);