2016-11-25 23:42:29 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html id="html">
|
|
|
|
<head>
|
|
|
|
<title><%= @title %></title>
|
|
|
|
<link href="/vendor/qunit.css" media="screen" rel="stylesheet" type="text/css" media="screen, projection" />
|
2017-02-21 13:41:17 -05:00
|
|
|
<%= script_tag "http://code.jquery.com/jquery-2.2.0.js" %>
|
2016-11-25 23:42:29 -05:00
|
|
|
<script>
|
|
|
|
// 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();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<%= script_tag "/rails-ujs.js" %>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="body">
|
|
|
|
<%= yield %>
|
|
|
|
</body>
|
|
|
|
</html>
|