From a2cae6dce9384ae82ecf410b0a49fc996abb5370 Mon Sep 17 00:00:00 2001 From: Jer Clarke Date: Thu, 8 Nov 2018 17:31:58 -0600 Subject: [PATCH] editorial-comments.js - update jQuery that pulls text from subscribed users The jQuery used to get the text from the node next to the textbox (username) There is now an extra div around the checkbox, so this is broken. New jQuery gets the parent of the checkbox, then searches it's siblings for the displayname and uses that --- modules/editorial-comments/lib/editorial-comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editorial-comments/lib/editorial-comments.js b/modules/editorial-comments/lib/editorial-comments.js index a080717bc..21e1721d7 100644 --- a/modules/editorial-comments/lib/editorial-comments.js +++ b/modules/editorial-comments/lib/editorial-comments.js @@ -144,7 +144,7 @@ editorialCommentReply = { var usernames = []; subscribed_users.each( function() { - usernames.push( $( this ).next().text() ); + usernames.push( $( this ).parent().siblings('.ef-user_displayname').text() ); } ); // Convert array of usernames into a sentence.