pg_layout/app/javascript/config/index.js in pg_rails-7.6.2 vs pg_layout/app/javascript/config/index.js in pg_rails-7.6.3

- old
+ new

@@ -5,25 +5,25 @@ import './tooltips' import 'trix' import '@rails/actiontext' -function bindListingClick () { - document.body.onclick = (ev) => { - if (ev.target.closest('a')) return - if (ev.target.closest('.listado')) { - const row = ev.target.closest('tr') - if (row) { - const show = row.querySelector('.bi-eye-fill') - if (show) { - const link = show.closest('a') - if (link) { - link.click() - } - } - } - } - } -} -bindListingClick() -document.addEventListener('turbo:load', bindListingClick) -document.addEventListener('turbo:render', bindListingClick) +// function bindListingClick () { +// document.body.onclick = (ev) => { +// if (ev.target.closest('a')) return +// if (ev.target.closest('.listado')) { +// const row = ev.target.closest('tr') +// if (row) { +// const show = row.querySelector('.bi-eye-fill') +// if (show) { +// const link = show.closest('a') +// if (link) { +// link.click() +// } +// } +// } +// } +// } +// } +// bindListingClick() +// document.addEventListener('turbo:load', bindListingClick) +// document.addEventListener('turbo:render', bindListingClick)