Toolkit: Add loading spiner

This commit is contained in:
asonix 2021-01-31 15:53:57 -06:00
parent 04eec386b1
commit c47a669bdc

View file

@ -11,7 +11,8 @@
function onClick(button, span) {
return function _listener() {
span.textContent = "Loading";
span.textContent = "";
span.setAttribute("class", "fa fa-spinner fa-spin fa-pulse");
button.removeEventListener("click", _listener);
button.addEventListener("click", preventDoubleClick);