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

10 lines
479 B
Plaintext

<% if @journal.frozen? %>
$("#change-<%= @journal.id %>").remove();
<% else %>
$("#journal-<%= @journal.id %>-notes").replaceWith('<%= escape_javascript(render_notes(@journal.issue, @journal, :reply_links => authorize_for('issues', 'edit'))) %>');
$("#journal-<%= @journal.id %>-notes").show();
$("#journal-<%= @journal.id %>-form").remove();
<% end %>
$('#new_form_reference_user_id').val('');
<%= call_hook(:view_journals_update_js_bottom, { :journal => @journal }) %>