7754189187
Didn't bother with files in db/, config/, or features/
10 lines
299 B
Plaintext
10 lines
299 B
Plaintext
- if note.valid?
|
|
:plain
|
|
$("#new_note .errors").remove();
|
|
$('#new_note textarea').val("");
|
|
NoteList.prepend(#{note.id}, "#{escape_javascript(render partial: "notes/show", locals: {note: note})}");
|
|
- else
|
|
:plain
|
|
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
|
|
|