9 lines
355 B
Plaintext
9 lines
355 B
Plaintext
$("#journal-<%= @journal.id %>-notes").hide();
|
|
$('#new_form_reference_user_id').val('');
|
|
if ($("form#journal-<%= @journal.id %>-form").length > 0) {
|
|
// journal edit form already loaded
|
|
$("#journal-<%= @journal.id %>-form").show();
|
|
} else {
|
|
$("#journal-<%= @journal.id %>-notes").after('<%= escape_javascript(render :partial => 'notes_form') %>');
|
|
}
|