app/views/layouts/trestle/admin.html.erb in trestle-0.8.3 vs app/views/layouts/trestle/admin.html.erb in trestle-0.8.4
- old
+ new
@@ -21,14 +21,14 @@
<%= javascript_include_tag "turbolinks" if Trestle.config.turbolinks %>
<%= javascript_include_tag "trestle/admin", 'data-turbolinks-track': 'reload' %>
<script type="text/javascript">
<% Trestle.config.javascript_i18n_keys.each do |key| %>
- Trestle.i18n['<%= key %>'] = "<%= escape_javascript(t(key, default: t(key, locale: :en))) %>";
+ Trestle.i18n['<%= key %>'] = "<%= escape_javascript(t(key, default: t(key, locale: :en))) %>";
<% end %>
- if (Flatpickr.l10ns['<%= I18n.locale %>']) {
- Flatpickr.localize(Flatpickr.l10ns['<%= I18n.locale %>']);
+ if (flatpickr.l10ns['<%= I18n.locale %>']) {
+ flatpickr.localize(flatpickr.l10ns['<%= I18n.locale %>']);
}
</script>
<%= hook :javascripts %>