${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)'); }); }
×
Edit Comment
Close
Save Comment
Membership
Products
Resources
Blog
About
Contact
LOG IN
Our Blog Has Moved
G'day readers...
For the moment, the Life Logic Blog has moved to our broader company website
Life Logic Group
Author: Jai Forster
Founder: Life Logic
Follow us on Socials
Top Blog Posts
Insert Blog Title Here
Insert Blog Title Here
Insert Blog Title Here
Insert Blog Title Here
Get your freebies here
Insert Freebie Title Here
Insert Freebie Title Here
Insert Freebie Title Here
Insert Freebie Title Here