grant.js 436 B

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