40,275
edits
m (try that) |
m (try that) |
||
const old = document.querySelector('.patrollink')
// progress spinner
const spin = $.createSpinner({ size: 'small', display: 'inline', })[0]
// setup the new button
const btn = document.createElement('button')
btn.setAttribute('disabled', true)
btn.replaceWith(spin)
setTimeout(function() { btn.removeAttribute('disabled'); spin.replaceWith(
})
// hide old button and show new one
|