Fixed comments for snippets. Tests fixed
This commit is contained in:
parent
d41d8ffb02
commit
292a41cbe2
7 changed files with 26 additions and 24 deletions
8
app/views/notes/_create_line.js.haml
Normal file
8
app/views/notes/_create_line.js.haml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- if note.valid?
|
||||
:plain
|
||||
$(".per_line_form").hide();
|
||||
$('#new_note textarea').val("");
|
||||
$("a.line_note_reply_link[line_code='#{note.line_code}']").closest("tr").remove();
|
||||
var trEl = $(".#{note.line_code}").parent();
|
||||
trEl.after("#{escape_javascript(render :partial => "notes/per_line_show", :locals => {:note => note})}");
|
||||
trEl.after("#{escape_javascript(render :partial => "notes/reply_button", :locals => {:line_code => note.line_code})}");
|
Loading…
Add table
Add a link
Reference in a new issue