Use className instead of classList here.

This commit is contained in:
voussoir 2020-09-14 12:01:33 -07:00
parent 1442e16eb7
commit 8659b55103

View file

@ -270,10 +270,8 @@ function init_button_with_confirm(button)
button.classList.remove("button_with_confirm"); button.classList.remove("button_with_confirm");
let holder = document.createElement("span"); let holder = document.createElement("span");
holder.className = button.dataset.holderClass || ""; holder.className = "confirm_holder " + (button.dataset.holderClass || "");
holder.classList.add("confirm_holder");
button.parentElement.insertBefore(holder, button); button.parentElement.insertBefore(holder, button);
button.parentElement.removeChild(button);
let holder_stage1 = document.createElement("span"); let holder_stage1 = document.createElement("span");
holder_stage1.className = "confirm_holder_stage1"; holder_stage1.className = "confirm_holder_stage1";