diff options
author | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-18 13:25:28 -0300 |
---|---|---|
committer | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-18 13:25:28 -0300 |
commit | d2cb70e8725371a72c0f9db36ad734041f4fb977 (patch) | |
tree | e4a7faa0b2ef1e9e72a16f7bbc5da17ecb54812f /static/js | |
parent | 7027fdd87011962b2b177342a462d54737e03501 (diff) |
themeable popup
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/posts.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/static/js/posts.js b/static/js/posts.js index 75244fa..30f4893 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -169,7 +169,7 @@ function quote(actorName, opid, id) var h = document.getElementById(id + "-content").offsetTop - 348; } - const boxStyle = "display: block; position: absolute; width: 400px; height: 600px; z-index: 9; top: " + h + "px; left: " + w + "px; padding: 5px;"; + const boxStyle = "top: " + h + "px; left: " + w + "px;"; box.setAttribute("style", boxStyle); sessionStorage.setItem("element-reply-style", boxStyle); sessionStorage.setItem("reply-top", h); @@ -189,7 +189,6 @@ function quote(actorName, opid, id) sessionStorage.setItem("element-reply-comment", comment.value); dragElement(header); - } function report(actorName, id) @@ -203,7 +202,7 @@ function report(actorName, id) var w = window.innerWidth / 2 - 200; var h = document.getElementById(id + "-content").offsetTop - 348; - const boxStyle = "display: block; position: absolute; width: 400px; height: 480px; z-index: 9; top: " + h + "px; left: " + w + "px; padding: 5px;"; + const boxStyle = "top: " + h + "px; left: " + w + "px;"; box.setAttribute("style", boxStyle); sessionStorage.setItem("element-report-style", boxStyle); sessionStorage.setItem("report-top", h); |