summaryrefslogtreecommitdiffstats
path: root/app/views/journals/update.rjs
blob: 55efb9bf373a5d386a25b59f517db39585891eb4 (plain)
1
2
3
4
5
6
7
8
9
10
if @journal.frozen?
  # journal was destroyed
  page.remove "change-#{@journal.id}"
else
  page.replace "journal-#{@journal.id}-notes", render_notes(@journal)
  page.show "journal-#{@journal.id}-notes"
  page.remove "journal-#{@journal.id}-form"
end

call_hook(:view_journals_update_rjs_bottom, { :page => page, :journal => @journal })