mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
26 lines
917 B
Text
26 lines
917 B
Text
<!DOCTYPE html>
|
|
<html id="html">
|
|
<head>
|
|
<title><%= @title %></title>
|
|
<%= csp_meta_tag %>
|
|
<link href="/vendor/qunit.css" media="screen" rel="stylesheet" type="text/css" media="screen, projection" />
|
|
<script src="/vendor/jquery-2.2.0.js"></script>
|
|
<%= javascript_tag nonce: true do %>
|
|
// This is for test in override.js.
|
|
// Must go before rails-ujs.
|
|
document.addEventListener('rails:attachBindings', function() {
|
|
window.Rails.linkClickSelector += ', a[data-custom-remote-link]';
|
|
// Hijacks link click before ujs binds any handlers
|
|
// This is only used for ctrl-clicking test on remote links
|
|
window.Rails.delegate(document, '#qunit-fixture a', 'click', function(e) {
|
|
e.preventDefault();
|
|
});
|
|
});
|
|
<% end %>
|
|
<%= javascript_include_tag "/rails-ujs.js" %>
|
|
</head>
|
|
|
|
<body id="body">
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|