Rename 'notes/reply_button' partial to 'notes/per_line_reply_button'
This commit is contained in:
parent
c02e3f2104
commit
29c71f2fb9
3 changed files with 2 additions and 2 deletions
|
@ -23,4 +23,4 @@
|
|||
- comments.each_with_index do |note, i|
|
||||
= render "notes/per_line_show", note: note
|
||||
- @line_notes.reject!{ |n| n == note }
|
||||
= render "notes/reply_button", line_code: line_code
|
||||
= render "notes/per_line_reply_button", line_code: line_code
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// find the commented line ...
|
||||
var trEl = $(".#{note.line_code}").parent();
|
||||
// ... and insert the note and the reply button after it
|
||||
trEl.after("#{escape_javascript(render "notes/reply_button", line_code: note.line_code)}");
|
||||
trEl.after("#{escape_javascript(render "notes/per_line_reply_button", line_code: note.line_code)}");
|
||||
trEl.after("#{escape_javascript(render "notes/per_line_show", note: note)}");
|
||||
} else {
|
||||
// instert new note before reply button
|
||||
|
|
Loading…
Reference in a new issue