Toolkit: Add loading spiner
This commit is contained in:
parent
04eec386b1
commit
c47a669bdc
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue