Rename parent to parentId

main
Elnu 2 years ago
parent 632ce5efa8
commit 0453953423

@ -1,11 +1,11 @@
function commentForm(parent) { function commentForm(parentId) {
return ` return `
<form id="soudan-comment-form" onsubmit="submitForm(this, event)"> <form id="soudan-comment-form" onsubmit="submitForm(this, event)">
<label for="author">Name:</label> <input type="text" name="author" placeholder="Anonymous"> <label for="author">Name:</label> <input type="text" name="author" placeholder="Anonymous">
<label for="email">Email:</label> <input type="email" name="email"> <label for="email">Email:</label> <input type="email" name="email">
<label for="text">Comment:</label> <label for="text">Comment:</label>
<textarea name="text" required></textarea> <textarea name="text" required></textarea>
<input type="hidden" name="parent"${parent ? ` value=${parent}` : ""}> <input type="hidden" name="parent"${parentId ? ` value=${parentId}` : ""}>
<input type="submit"> <input type="submit">
</form>`; </form>`;
} }

Loading…
Cancel
Save