2011-10-08 17:36:38 -04:00
|
|
|
- if @note.valid?
|
|
|
|
:plain
|
|
|
|
$("#new_note .errors").remove();
|
2011-10-20 12:21:58 -04:00
|
|
|
updatePage();
|
2011-10-08 17:36:38 -04:00
|
|
|
$('#note_note').val("");
|
|
|
|
- else
|
|
|
|
:plain
|
|
|
|
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
|
2011-10-17 13:05:47 -04:00
|
|
|
|
2011-10-26 09:46:25 -04:00
|
|
|
:plain
|
2011-10-17 13:05:47 -04:00
|
|
|
$("#submit_note").removeAttr("disabled");
|