restore coment from the old index.html about overwriting the link selector

This commit is contained in:
Lachlan Sylvester 2023-01-04 00:37:45 +11:00
parent b39f06b226
commit 143472b944
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
// Must go before rails-ujs.
document.addEventListener('rails:attachBindings', function() { document.addEventListener('rails:attachBindings', function() {
// This is for test in override.js.
window.Rails.linkClickSelector += ', a[data-custom-remote-link]'; window.Rails.linkClickSelector += ', a[data-custom-remote-link]';
// Hijacks link click before ujs binds any handlers // Hijacks link click before ujs binds any handlers
// This is only used for ctrl-clicking test on remote links // This is only used for ctrl-clicking test on remote links
window.Rails.delegate(document, '#qunit-fixture a', 'click', function(e) { window.Rails.delegate(document, '#qunit-fixture a', 'click', function(e) {