2011-10-13 03:00:00 +02:00
|
|
|
- if @note.valid?
|
|
|
|
:plain
|
|
|
|
$("#new_note .errors").remove();
|
2011-10-21 19:04:41 +02:00
|
|
|
updatePage();
|
2011-10-13 03:00:00 +02:00
|
|
|
$('#note_note').val("");
|
|
|
|
- else
|
|
|
|
:plain
|
|
|
|
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
|
2011-10-21 19:04:41 +02:00
|
|
|
|
|
|
|
:plain
|
|
|
|
$("#submit_note").removeAttr("disabled");
|