blob: c458bbbab8488a49032b30279562a4bd8e9bb4c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
document.querySelector('form').addEventListener('submit', function(e) {
const wrapper = document.getElementById('submit-wrapper')
if (wrapper === null) {
return
}
wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) {
el.classList.remove('icon-confirm-white')
el.classList.add(OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark')
el.disabled = true
})
})
|