1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-09-19 20:25:57 +00:00

feature-comments: typo

This commit is contained in:
Starbeamrainbowlabs 2024-09-06 02:18:53 +01:00
parent d56217f929
commit 4b173225b5
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -5,7 +5,7 @@
register_module([ register_module([
"name" => "Page Comments", "name" => "Page Comments",
"version" => "0.3.6", "version" => "0.3.7",
"author" => "Starbeamrainbowlabs", "author" => "Starbeamrainbowlabs",
"description" => "Adds threaded comments to the bottom of every page.", "description" => "Adds threaded comments to the bottom of every page.",
"id" => "feature-comments", "id" => "feature-comments",
@ -308,9 +308,9 @@ function display_reply_form(event)
// Set the comment we're replying to // Set the comment we're replying to
replyForm.querySelector("[name=replyto]").value = event.target.parentElement.parentElement.parentElement.dataset.commentId; replyForm.querySelector("[name=replyto]").value = event.target.parentElement.parentElement.parentElement.dataset.commentId;
// Display the newly-cloned commenting form // Display the newly-cloned commenting form
var replyBoxContiner = event.target.parentElement.parentElement.parentElement.querySelector(".reply-box-container"); var replyBoxContainer = event.target.parentElement.parentElement.parentElement.querySelector(".reply-box-container");
replyBoxContiner.classList.add("active"); replyBoxContainer.classList.add("active");
replyBoxContiner.appendChild(replyForm); replyBoxContainer.appendChild(replyForm);
// Hide the reply button so it can't be pressed more than once - that could // Hide the reply button so it can't be pressed more than once - that could
// be awkward :P // be awkward :P
event.target.parentElement.removeChild(event.target); event.target.parentElement.removeChild(event.target);