Correct javascript ordering issue in nonprofits/show view
This commit is contained in:
parent
ea5196ceb1
commit
8c9dc3af37
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= content_for :javascripts do %>
|
<%= content_for :javascripts do %>
|
||||||
|
<%= javascript_pack_tag 'i18n', 'page__nonprofits__show', 'page__nonprofits__edit' %>
|
||||||
<script>
|
<script>
|
||||||
app.header_image_url = '<%= @nonprofit_background_image %>'
|
app.header_image_url = '<%= @nonprofit_background_image %>'
|
||||||
app.current_nonprofit_user = <%= current_nonprofit_user? %>
|
app.current_nonprofit_user = <%= current_nonprofit_user? %>
|
||||||
|
@ -40,7 +41,7 @@
|
||||||
<%= render 'schema', npo: @nonprofit %>
|
<%= render 'schema', npo: @nonprofit %>
|
||||||
<%= render 'common/froala' if current_nonprofit_user? %>
|
<%= 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 %>
|
<% # needs to be after the page load because that's when I18n is included %>
|
||||||
<script>
|
<script>
|
||||||
var I18n = I18n || {}
|
var I18n = I18n || {}
|
||||||
|
|
Loading…
Reference in a new issue