socialforge/app/views/journals/edit.js.erb

9 lines
355 B
Plaintext
Raw Normal View History

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