Let the user provide their own text for the spinner.
This commit is contained in:
parent
ad1655bf3e
commit
d23976334c
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ function init_button_with_spinner()
|
|||
else
|
||||
{
|
||||
spinner_element = document.createElement("span");
|
||||
spinner_element.innerText = "Working...";
|
||||
spinner_element.innerText = button.dataset.spinnerText || "Working...";
|
||||
spinner_element.classList.add("hidden");
|
||||
holder.appendChild(spinner_element);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue