Use className instead of classList here.
This commit is contained in:
parent
1442e16eb7
commit
8659b55103
1 changed files with 1 additions and 3 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue