From 77cdef27812f613e5105a29290f983177875dfcd Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Tue, 28 Nov 2017 11:49:28 +0100 Subject: [PATCH] Reply on new comment removes create form --- Resources/public/js/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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