summaryrefslogtreecommitdiffstats
path: root/app/views/journals/update.js.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/journals/update.js.erb')
-rw-r--r--app/views/journals/update.js.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/journals/update.js.erb b/app/views/journals/update.js.erb
index 9b16273ab..65c198d59 100644
--- a/app/views/journals/update.js.erb
+++ b/app/views/journals/update.js.erb
@@ -1,9 +1,9 @@
<% if @journal.frozen? %>
- Element.remove("change-<%= @journal.id %>");
+ $("#change-<%= @journal.id %>").remove();
<% else %>
- Element.replace("journal-<%= @journal.id %>-notes", '<%= escape_javascript(render_notes(@journal.issue, @journal, :reply_links => authorize_for('issues', 'edit'))) %>');
- Element.show("journal-<%= @journal.id %>-notes");
- Element.remove("journal-<%= @journal.id %>-form");
+ $("#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 }) %>