summaryrefslogtreecommitdiff
path: root/static/js/dynamic-comment-form.js
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2024-08-11 11:21:23 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2024-08-11 11:21:23 -0400
commite46b4582f24d570533e3deac2a207ee0da8ccc7d (patch)
treeab988a5c1d94b335777d9c240692afce7b2e5463 /static/js/dynamic-comment-form.js
parentdb825942fb062e4e57d19e031b983f1e2fd687c6 (diff)
[dynamic] Fix the "reply" button on comments
Diffstat (limited to 'static/js/dynamic-comment-form.js')
-rw-r--r--static/js/dynamic-comment-form.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/static/js/dynamic-comment-form.js b/static/js/dynamic-comment-form.js
index 4be2d52..ff5f875 100644
--- a/static/js/dynamic-comment-form.js
+++ b/static/js/dynamic-comment-form.js
@@ -82,6 +82,12 @@ window.addEventListener("load", () => {
window.addEventListener("load", () => {
+ // Unhide additional comment actions if Javascript is enabled.
+ let additionalActionsRows = document.querySelectorAll(".comment-additional-actions");
+ for (let row of additionalActionsRows) {
+ row.removeAttribute("hidden");
+ }
+
let header = document.getElementById("comment-form-header");
let replyTo = document.getElementById("reply-to");
let buttons = document.querySelectorAll(".comment-reply-button");