Don't add a comment on a line that already has one

This commit is contained in:
Correl Roush 2010-12-15 22:13:32 -05:00
parent f89a815b47
commit 0a59276092

View file

@ -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 %}">' +