1
0
Fork 0
forked from forgejo/forgejo

Reply button is not removed when deleting a code review comment (#13774)

Co-authored-by: mrsdizzie <info@mrsdizzie.com>
This commit is contained in:
Jimmy Praet 2020-12-03 16:05:27 +01:00 committed by GitHub
parent 4353cf96c0
commit 47e4d1a4e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 97 deletions

View file

@ -1094,7 +1094,11 @@ async function initRepository() {
$.post($this.data('url'), {
_csrf: csrf
}).done(() => {
const $conversationHolder = $this.closest('.conversation-holder');
$(`#${$this.data('comment-id')}`).remove();
if ($conversationHolder.length && !$conversationHolder.find('.comment').length) {
$conversationHolder.remove();
}
});
}
return false;