mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-14 21:40:55 -05:00
c9e22f7ddf
[web] de-ng sso/oauth/institutional account linking pages GitOrigin-RevId: 50718cefff68142431aa411cb4f8644a3d8ab93f
15 lines
450 B
JavaScript
15 lines
450 B
JavaScript
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)
|