You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/journals/update.js.erb

10 lines
479 B

6 years ago
<% 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 }) %>