21 lines
494 B
Text
21 lines
494 B
Text
<%#
|
|
# 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 %>
|
|
|
|
<%= yield :javascript %>
|
|
|
|
<% if Rails.env.test? %>
|
|
<%= javascript_tag do %>
|
|
$.fx.off = true;
|
|
$.ajaxSetup({ async: false });
|
|
<% end %>
|
|
<% end %>
|