2012-07-19 23:10:18 +04:00
|
|
|
<% if @journal.frozen? %>
|
2012-07-22 17:29:26 +04:00
|
|
|
$("#change-<%= @journal.id %>").remove();
|
2012-07-19 23:10:18 +04:00
|
|
|
<% else %>
|
2012-07-22 17:29:26 +04:00
|
|
|
$("#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();
|
2012-07-19 23:10:18 +04:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= call_hook(:view_journals_update_js_bottom, { :journal => @journal }) %>
|