Correct javascript ordering issue in nonprofits/show view

This commit is contained in:
Eric 2020-05-19 14:57:08 -05:00
parent ea5196ceb1
commit 8c9dc3af37

View file

@ -20,6 +20,7 @@
<% end %>
<%= content_for :javascripts do %>
<%= javascript_pack_tag 'i18n', 'page__nonprofits__show', 'page__nonprofits__edit' %>
<script>
app.header_image_url = '<%= @nonprofit_background_image %>'
app.current_nonprofit_user = <%= current_nonprofit_user? %>
@ -40,7 +41,7 @@
<%= render 'schema', npo: @nonprofit %>
<%= render 'common/froala' if current_nonprofit_user? %>
<%= javascript_pack_tag 'i18n', 'page__nonprofits__show', 'page__nonprofits__edit' %>
<% # needs to be after the page load because that's when I18n is included %>
<script>
var I18n = I18n || {}