diff --git a/progit/templates/pull_request.html b/progit/templates/pull_request.html index fdd2e1d..417edfb 100644 --- a/progit/templates/pull_request.html +++ b/progit/templates/pull_request.html @@ -134,15 +134,16 @@ 'pull_request_add_comment', username=username, repo=repo.name, requestid=requestid, commit='', row='') }}".slice(0, -1); url = url + commit + '/' + row; - var current_row = $( this ).parent(); - if (current_row.next().find('.pr_comment').length == 0){ + var table = $( this ).parent().parent(); + var next_row = table.find('#' + (+row + 1)).parent().parent(); + if (current_row.next().find('.pr_comment_form').length == 0){ $.get( url , function( data ) { - current_row.after( - '