first commit

This commit is contained in:
2025-04-24 13:11:28 +08:00
commit ff9c54d5e4
5960 changed files with 834111 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { inflightHelper } from '../form-helpers/hydrate-form'
import { disableElement } from '../utils/disableElement'
function setup(el) {
// Make the element discoverable for multi-submit.
el.setAttribute('data-ol-disabled-inflight', '')
inflightHelper(el)
el.addEventListener('click', function () {
disableElement(el)
el.dispatchEvent(new Event('pending'))
})
}
document.querySelectorAll('[data-ol-slow-link]').forEach(setup)