demarches-normaliennes/app/views/manager/application/_javascript.html.erb

26 lines
587 B
Text
Raw Normal View History

2018-08-01 11:22:12 +02:00
<%#
# Javascript Partial
This partial imports the necessary javascript on each page.
By default, it includes the application JS,
but each page can define additional JS sources
by providing a `content_for(:javascript)` block.
%>
<% Administrate::Engine.javascripts.each do |js_path| %>
<%= javascript_include_tag js_path %>
<% end %>
2024-05-06 18:07:29 +02:00
<%= vite_client_tag %>
<%= vite_react_refresh_tag %>
2022-10-31 12:02:12 +01:00
<%= vite_typescript_tag 'manager' %>
2018-08-01 11:22:12 +02:00
<%= yield :javascript %>
<% if Rails.env.test? %>
<%= javascript_tag do %>
$.fx.off = true;
$.ajaxSetup({ async: false });
<% end %>
<% end %>