2013-08-01 10:33:49 +08:00
|
|
|
$("#journal-<%= @journal.id %>-notes").hide();
|
2013-08-11 10:36:55 +08:00
|
|
|
$('#new_form_reference_user_id').val('');
|
2013-08-01 10:33:49 +08:00
|
|
|
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') %>');
|
|
|
|
}
|