set initial comment toggle icon
This commit is contained in:
parent
e893dc3b24
commit
375e1a2100
|
@ -1201,7 +1201,7 @@ function writeComments(allComments) {
|
||||||
|
|
||||||
function createReplyButton(replyId, totalReplies) {
|
function createReplyButton(replyId, totalReplies) {
|
||||||
let replyButton = document.createElement('button');
|
let replyButton = document.createElement('button');
|
||||||
replyButton.innerHTML = `<span id="toggle-icon">+</span> ${totalReplies} replies`;
|
replyButton.innerHTML = `<span id="toggle-icon">▼</span> ${totalReplies} replies`;
|
||||||
replyButton.setAttribute('data-id', replyId);
|
replyButton.setAttribute('data-id', replyId);
|
||||||
replyButton.setAttribute('onclick', 'toggleCommentReplies(this)');
|
replyButton.setAttribute('onclick', 'toggleCommentReplies(this)');
|
||||||
return replyButton;
|
return replyButton;
|
||||||
|
|
Loading…
Reference in New Issue