Fix bugs in ordering of javascript loads on events/show

This commit is contained in:
Eric 2020-05-15 17:00:47 -05:00
parent 72e78babd9
commit f84fef200c

View file

@ -21,17 +21,19 @@
<%= content_for :javascripts do %>
<script>
app.event_id = <%= @event.id %>
appl.def('event_id', <%= @event.id %>)
app.hide_activities = <%= @event.hide_activity_feed %>
app.header_image_url = '<%= @event_background_image %>'
app.current_event_editor = <%= current_event_editor? %>
app.event_url = '<%= nonprofit_event_path(@nonprofit, @event) %>'
appl.def('event_is_deleted', <%= @event.deleted || false %>)
</script>
<%= render 'common/froala' if current_event_editor? %>
<%= render 'schema', event: @event, url: @url %>
<%= javascript_pack_tag 'i18n', 'page__events__show' %>
<script>
appl.def('event_id', <%= @event.id %>)
appl.def('event_is_deleted', <%= @event.deleted || false %>)
</script>
<% end %>
<%= content_for :head do %>