Commit 29c71f2f authored by Riyad Preukschas's avatar Riyad Preukschas

Rename 'notes/reply_button' partial to 'notes/per_line_reply_button'

parent c02e3f21
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment