mirror of
https://github.com/correl/codereview.git
synced 2025-03-12 17:00:03 -09:00
Don't add a comment on a line that already has one
This commit is contained in:
parent
f89a815b47
commit
0a59276092
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
var path = info[1];
|
||||
var line_a = info[2];
|
||||
var line_b = info[3];
|
||||
if ($('#' + form_id).length == 0) {
|
||||
if ($('#' + form_id).length == 0 && !$(this).next().hasClass('annotation')) {
|
||||
// Show the comment form
|
||||
var form = $(
|
||||
'<form method="post" action="{% url codereview.review.views.add_comment %}">' +
|
||||
|
|
Loading…
Add table
Reference in a new issue