summaryrefslogtreecommitdiffstats
path: root/app/views/journals/update.js.erb
blob: 65c198d5926ab68b1f8ed223833a6cf620c420d2 (plain)
1
2
3
4
5
6
7
8
9
<% 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 %>

<%= call_hook(:view_journals_update_js_bottom, { :journal => @journal }) %>