Fix comment deletion

This commit is contained in:
Naoki Takezoe
2018-04-26 20:02:13 +09:00
parent 3f74745fc5
commit ddbc2e6a56

View File

@@ -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();
}