diff --git a/modules/editorial-comments/lib/editorial-comments.js b/modules/editorial-comments/lib/editorial-comments.js index a6da43b5e..068f0b75d 100644 --- a/modules/editorial-comments/lib/editorial-comments.js +++ b/modules/editorial-comments/lib/editorial-comments.js @@ -23,7 +23,7 @@ editorialCommentReply = { jQuery('a.ef-replysave', row).click(function() { return editorialCommentReply.send(); }); // Watch for changes to the subscribed users. - $( '#ef-post_following_box' ).on( 'following_list_updated', function() { + jQuery( '#ef-post_following_box' ).on( 'following_list_updated', function() { editorialCommentReply.notifiedMessage(); } ); }, @@ -145,8 +145,8 @@ editorialCommentReply = { var usernames = []; subscribed_users.each( function() { // Add usernames of checked users to the list if they don't have a blocking class - if ( ! $( this ).siblings().is( '.post_following_list-no_email,.post_following_list-no_access' ) && ! $( this ).hasClass( 'post_following_list-current_user' ) ) { - usernames.push( $( this ).parent().siblings( '.ef-user_displayname, .ef-usergroup_name' ).text() ); + if ( ! jQuery( this ).siblings().is( '.post_following_list-no_email,.post_following_list-no_access' ) && ! jQuery( this ).hasClass( 'post_following_list-current_user' ) ) { + usernames.push( jQuery( this ).parent().siblings( '.ef-user_displayname, .ef-usergroup_name' ).text() ); } } );