aboutsummaryrefslogtreecommitdiff
path: root/static/js/posts.js
diff options
context:
space:
mode:
authorFChannel <>2021-10-04 20:13:00 -0700
committerFChannel <>2021-10-04 20:13:00 -0700
commite490998c196e5c7a64e8903a500078f5c98e3dad (patch)
tree6efb333b5d2e58c6e8ac5ee21fa9850807a34862 /static/js/posts.js
parent51b00e294280b44010736f9afd4b250e9a372340 (diff)
parent36c63daa85818488055edf8ae63af58058e4efb2 (diff)
Merge branch 'development'
Diffstat (limited to 'static/js/posts.js')
-rw-r--r--static/js/posts.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/static/js/posts.js b/static/js/posts.js
index 29541c0..b9e9706 100644
--- a/static/js/posts.js
+++ b/static/js/posts.js
@@ -164,11 +164,7 @@ function quote(actorName, opid, id)
var inReplyTo = document.getElementById("inReplyTo-box");
var w = window.innerWidth / 2 - 200;
- if(id == "reply") {
- var h = document.getElementById(id + "-content").offsetTop - 548;
- } else {
- var h = document.getElementById(id + "-content").offsetTop - 348;
- }
+ var h = 300; //document.getElementById(id + "-content").offsetTop - 348;
const boxStyle = "top: " + h + "px; left: " + w + "px;";
box.setAttribute("style", boxStyle);
@@ -201,7 +197,7 @@ function report(actorName, id)
var inReplyTo = document.getElementById("report-inReplyTo-box");
var w = window.innerWidth / 2 - 200;
- var h = document.getElementById(id + "-content").offsetTop - 348;
+ var h = 300; //document.getElementById(id + "-content").offsetTop - 348;
const boxStyle = "top: " + h + "px; left: " + w + "px;";
box.setAttribute("style", boxStyle);