Let the button_with_confirm give a class to its holder.

master
voussoir 2018-09-23 15:03:50 -07:00
parent 20e41ad689
commit 8a1d5d9eae
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ function init_button_with_confirm()
var button = buttons[index];
var holder = document.createElement("span");
holder.classList.add("confirm_holder");
holder.classList.add(button.dataset.holderClass || "confirm_holder");
button.parentElement.insertBefore(holder, button);
button.parentElement.removeChild(button);