Remove button_with_confirm class from buttons once in progress.

This commit is contained in:
voussoir 2019-06-15 13:16:38 -07:00
parent 4ab352a74d
commit a0164205a2

View file

@ -159,6 +159,8 @@ function init_button_with_confirm()
for (var index = 0; index < buttons.length; index += 1) for (var index = 0; index < buttons.length; index += 1)
{ {
var button = buttons[index]; var button = buttons[index];
button.classList.remove("button_with_confirm");
var holder = document.createElement("span"); var holder = document.createElement("span");
holder.classList.add("confirm_holder"); holder.classList.add("confirm_holder");
holder.classList.add(button.dataset.holderClass || "confirm_holder"); holder.classList.add(button.dataset.holderClass || "confirm_holder");