${commentUserName} said:
${html}
`;
++blockquoteId;
addSocialWallReply(quoteHtml, commentContainer);
},
replyLabel: 'Quote',
filter: '#socialWall .socialWallCommentTextContent, #socialWallComments .socialWallCommentTextContent, #socialWallSearchModal .socialWallCommentTextContent, #commentThreadDialog .socialWallCommentTextContent'
});
}
function updateSocialWallCommentsBorderLines() {
jQuery('.socialWallComment.socialWallCommentHasChildren').each(function(_, commentRow) {
commentRow = jQuery(commentRow);
console.log(commentRow.attr('id'));
const repliesContainer = commentRow.find('.socialWallCommentRepliesContainer:first');
const lastChildComment = repliesContainer.children('.socialWallComment:visible:last');
let heightToSubstract = parseInt(lastChildComment.outerHeight()) + parseInt(lastChildComment.css('margin-bottom')) + parseInt(lastChildComment.css('margin-top'));
lastChildComment.nextAll(':visible').each(function(_, element) {
element = jQuery(element);
heightToSubstract += element.outerHeight();
});
const replyContainer = commentRow.children('.socialWallCommentReplyContainer');
if (replyContainer.is(':visible')) {
heightToSubstract += replyContainer.outerHeight() + parseInt(replyContainer.css('margin-bottom')) + parseInt(replyContainer.css('margin-top'));
}
const border = commentRow.find('.socialWallCommentLeftBorderAllHeight');
heightToSubstract += parseInt(border.css('top'));
border.css('height', 'calc(100% - ' + (heightToSubstract) + 'px)');
});
}