8 lines
292 B
Text
8 lines
292 B
Text
- if @note.valid?
|
|
:plain
|
|
$("#new_note .errors").remove();
|
|
$("#notes-list").append("#{escape_javascript(render(:partial => 'show', :locals => {:note => @note} ))}");
|
|
$('#note_note').val("");
|
|
- else
|
|
:plain
|
|
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
|