提交 29c71f2f 编写于 作者: R Riyad Preukschas

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册