grant.js 403 B

12345678910
  1. document.querySelector('form').addEventListener('submit', function(e) {
  2. const wrapper = document.getElementById('submit-wrapper')
  3. if (wrapper === null) {
  4. return
  5. }
  6. 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. })
  10. })