add reply button functionality
This commit is contained in:
8
js/thread.js
Normal file
8
js/thread.js
Normal file
@ -0,0 +1,8 @@
|
||||
const ta = document.getElementById("post_content");
|
||||
|
||||
for (let button of document.querySelectorAll(".reply-button")) {
|
||||
button.addEventListener("click", (e) => {
|
||||
ta.value += button.value;
|
||||
ta.scrollIntoView()
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user