Fix appending diff line notes

This commit is contained in:
Riyad Preukschas 2012-10-29 19:37:37 +01:00
parent 5c2f6d7f05
commit 6c6f415cae
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@
// find the reply button for this line
// (might not be there if this is the first note)
var trRpl = $("a.line_note_reply_link[data-line-code='#{note.line_code}']").closest("tr");
var trRpl = $("a.line_note_reply_link[data-noteable-type='#{note.noteable_type}'][data-noteable-id='#{note.noteable_id}'][data-line-code='#{note.line_code}']").closest("tr");
if (trRpl.size() == 0) {
// find the commented line ...
var trEl = $(".#{note.line_code}").parent();