Skip to content

Commit

Permalink
Tell Turbolinks to track changes in admin assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Jun 8, 2017
1 parent 1eb56ed commit 7254ed3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/app/views/spree/admin/shared/_head.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- Get "Open Sans" font from Google -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese' rel='stylesheet' type='text/css'>

<%= stylesheet_link_tag 'spree/backend/all', media: 'all' %>
<%= stylesheet_link_tag 'spree/backend/all', media: 'all', data: {turbolinks_track: 'reload'} %>

<%- if Rails.env.test? %>
<style>
Expand All @@ -30,7 +30,7 @@
<%- end %>


<%= javascript_include_tag 'spree/backend/all' %>
<%= javascript_include_tag 'spree/backend/all', data: {turbolinks_track: 'reload'} %>

<%= render "spree/admin/shared/js_locale_data" %>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@
</script>

<% if I18n.locale != :en %>
<%= javascript_include_tag "solidus_admin/select2_locales/select2_locale_#{I18n.locale}" %>
<%= javascript_include_tag "solidus_admin/select2_locales/select2_locale_#{I18n.locale}",
data: {turbolinks_track: 'reload'} %>
<% end %>
4 changes: 2 additions & 2 deletions backend/app/views/spree/layouts/admin_style_guide.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Solidus Style Guide</title>

<%= stylesheet_link_tag "spree/backend/all" %>
<%= javascript_include_tag "spree/backend/all" %>
<%= stylesheet_link_tag "spree/backend/all", data: {turbolinks_track: 'reload'} %>
<%= javascript_include_tag "spree/backend/all", data: {turbolinks_track: 'reload'} %>
<%= render "spree/admin/shared/js_locale_data" %>
</head>

Expand Down

0 comments on commit 7254ed3

Please sign in to comment.