BigW Consortium Gitlab

Commit 29c71f2f by Riyad Preukschas

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

parent c02e3f21
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
- comments.each_with_index do |note, i| - comments.each_with_index do |note, i|
= render "notes/per_line_show", note: note = render "notes/per_line_show", note: note
- @line_notes.reject!{ |n| n == 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 @@ ...@@ -11,7 +11,7 @@
// find the commented line ... // find the commented line ...
var trEl = $(".#{note.line_code}").parent(); var trEl = $(".#{note.line_code}").parent();
// ... and insert the note and the reply button after it // ... 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)}"); trEl.after("#{escape_javascript(render "notes/per_line_show", note: note)}");
} else { } else {
// instert new note before reply button // 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