mirror of https://github.com/rails/rails
restore coment from the old index.html about overwriting the link selector
This commit is contained in:
parent
b39f06b226
commit
143472b944
|
@ -1,5 +1,8 @@
|
|||
// Must go before rails-ujs.
|
||||
document.addEventListener('rails:attachBindings', function() {
|
||||
// This is for test in override.js.
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue