timeout reset button text after click

pull/6/head
simon 2 years ago
parent 6b6a9b8b02
commit 59709c4c29
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -318,8 +318,14 @@ function buttonSuccess(button) {
}
if (buttonSpan.innerHTML === "Subscribe") {
buttonSpan.innerHTML = "Success";
setTimeout(() => {
buttonSpan.innerHTML = "Subscribe";
}, 2000);
} else {
buttonSpan.innerHTML = checkmarkIcon;
setTimeout(() => {
buttonSpan.innerHTML = downloadIcon;
}, 2000);
}
}

Loading…
Cancel
Save