2016-11-25 23:42:29 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html id="html">
|
|
|
|
<head>
|
|
|
|
<title><%= @title %></title>
|
2018-02-16 08:21:48 -05:00
|
|
|
<%= csp_meta_tag %>
|
2016-11-25 23:42:29 -05:00
|
|
|
<link href="/vendor/qunit.css" media="screen" rel="stylesheet" type="text/css" media="screen, projection" />
|
2017-07-20 08:32:48 -04:00
|
|
|
<script src="/vendor/jquery-2.2.0.js" type="text/javascript"></script>
|
2018-02-16 08:21:48 -05:00
|
|
|
<%= javascript_tag nonce: true do %>
|
2016-11-25 23:42:29 -05:00
|
|
|
// This is for test in override.js.
|
2017-02-20 00:29:26 -05:00
|
|
|
// Must go before rails-ujs.
|
2017-02-21 13:41:17 -05:00
|
|
|
document.addEventListener('rails:attachBindings', function() {
|
|
|
|
window.Rails.linkClickSelector += ', a[data-custom-remote-link]';
|
2016-11-25 23:42:29 -05:00
|
|
|
// Hijacks link click before ujs binds any handlers
|
|
|
|
// This is only used for ctrl-clicking test on remote links
|
2017-02-21 13:41:17 -05:00
|
|
|
window.Rails.delegate(document, '#qunit-fixture a', 'click', function(e) {
|
2016-11-25 23:42:29 -05:00
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
});
|
2018-02-16 08:21:48 -05:00
|
|
|
<% end %>
|
|
|
|
<%= javascript_include_tag "/rails-ujs.js" %>
|
2016-11-25 23:42:29 -05:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="body">
|
|
|
|
<%= yield %>
|
|
|
|
</body>
|
|
|
|
</html>
|