refactored too
This commit is contained in:
parent
ca1e3d0579
commit
8a23682fc5
11 changed files with 56 additions and 53 deletions
|
@ -2,6 +2,7 @@
|
|||
:plain
|
||||
$("#new_note .errors").remove();
|
||||
$('#note_note').val("");
|
||||
NoteList.prepend(#{@note.id}, "#{escape_javascript(render :partial => "notes/show", :locals => {:note => @note})}");
|
||||
- else
|
||||
:plain
|
||||
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue