From ddbc2e6a56daccde9c5b779055cc80b9a14bae36 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Thu, 26 Apr 2018 20:02:13 +0900 Subject: [PATCH] Fix comment deletion --- src/main/twirl/gitbucket/core/issues/commentlist.scala.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 684efdf7f..05fa53eeb 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -292,7 +292,7 @@ $(function(){ if(data > 0) { var comment = $('.commit-comment-' + id).closest('.not-diff'); if(comment.prev('.not-diff').length == 0){ - comment.next('.not-diff').find('.reply-comment').remove(); + comment.next('.not-diff:has(.reply-comment)').remove(); } comment.remove(); }