Reply button, Comments for Merge Request diff
This commit is contained in:
parent
215a01f63c
commit
d41d8ffb02
13 changed files with 53 additions and 15 deletions
|
@ -3,7 +3,10 @@
|
|||
:plain
|
||||
$(".per_line_form").hide();
|
||||
$('#new_note textarea').val("");
|
||||
$(".#{@note.line_code}").parent().after("#{escape_javascript(render :partial => "notes/per_line_show", :locals => {:note => @note})}");
|
||||
$("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})}");
|
||||
- else
|
||||
:plain
|
||||
$("#new_note .errors").remove();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue