Fix bugs in ordering of javascript loads on events/show
This commit is contained in:
parent
72e78babd9
commit
f84fef200c
1 changed files with 4 additions and 2 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue