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

This commit is contained in:
Riyad Preukschas 2012-09-14 05:10:06 +02:00
parent c02e3f2104
commit 29c71f2fb9
3 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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