Skip to content

Commit 595ce71

Browse files
rfwatsonjeffliu27
authored andcommitted
bug fix: add single comment in split diff mode (go-gitea#4745) (go-gitea#7052)
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
1 parent 40a6c56 commit 595ce71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/js/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,10 @@ function initPullRequestReview() {
10481048
$(this).closest('tr').removeClass('focus-lines-new focus-lines-old');
10491049
});
10501050
$('.add-code-comment').on('click', function(e) {
1051+
// https://github.com/go-gitea/gitea/issues/4745
1052+
if ($(e.target).hasClass('btn-add-single')) {
1053+
return;
1054+
}
10511055
e.preventDefault();
10521056
var isSplit = $(this).closest('.code-diff').hasClass('code-diff-split');
10531057
var side = $(this).data('side');

0 commit comments

Comments
 (0)