Sha256: 72beb639ad7c7e2ce43395716644664357dd7b5a3aa471c7a0c6ef64d2487652
Contents?: true
Size: 697 Bytes
Versions: 47
Compression:
Stored size: 697 Bytes
Contents
import './cable_ready' import './turbo_rails' import './rollbar' import './bootstrap' 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)
Version data entries
47 entries across 47 versions & 1 rubygems