2012-07-22 17:29:26 +04:00
|
|
|
$("#journal-<%= @journal.id %>-notes").hide();
|
2012-12-13 16:42:10 +04: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') %>');
|
|
|
|
}
|