view app/views/journals/edit.js.erb @ 1514:d8de7203e3a8 live

Remove en-GB translations -- they are out of date, and in our site en.yml is British anyway
author Chris Cannam
date Wed, 30 Apr 2014 17:25:58 +0100
parents 433d4f72a19b
children
line wrap: on
line source
$("#journal-<%= @journal.id %>-notes").hide();

if ($("form#journal-<%= @journal.id %>-form").length > 0) {
  // journal edit form already loaded
  $("#journal-<%= @journal.id %>-form").show();
} else {
  $("#journal-<%= @journal.id %>-notes").after('<%= escape_javascript(render :partial => 'notes_form') %>');
}