diff --git a/Resources/public/js/comments.js b/Resources/public/js/comments.js index c0da399e0..90003b7c6 100644 --- a/Resources/public/js/comments.js +++ b/Resources/public/js/comments.js @@ -139,7 +139,7 @@ FOS_COMMENT.appendComment(data, that); that.trigger('fos_comment_new_comment', data); if (that.data() && that.data().parent !== '') { - that.parents('.fos_comment_comment_form_holder').remove(); + that.closest('.fos_comment_comment_form_holder').remove(); } }, // error