From 9232e07f4495c2b5b5b2875684cc4182bd3fdd11 Mon Sep 17 00:00:00 2001 From: zemiacsik Date: Thu, 29 Nov 2018 10:19:47 +0100 Subject: [PATCH] fixed undefined variables in .js Replaced undefined variables with proper selectors (as in 4.x branch) after deleting a comment. --- javascript/CommentsInterface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/CommentsInterface.js b/javascript/CommentsInterface.js index 255b517..5d2d0c0 100755 --- a/javascript/CommentsInterface.js +++ b/javascript/CommentsInterface.js @@ -168,8 +168,8 @@ comment.fadeOut(1000, function() { comment.remove(); - if(commentsList.children().length === 0) { - noCommentsYet.show(); + if($('.comments-holder .comments-list').children().length === 0) { + $('.no-comments-yet').show(); } }); }