Use Function instead of setAttribute to create onclick.
This commit is contained in:
parent
bdff14ecf2
commit
e0544adc06
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ function init_button_with_confirm()
|
|||
holder.getElementsByClassName("confirm_holder_stage1")[0].classList.remove("hidden");
|
||||
holder.getElementsByClassName("confirm_holder_stage2")[0].classList.add("hidden");
|
||||
`
|
||||
button_confirm.setAttribute("onclick", confirm_onclick);
|
||||
button_confirm.onclick = Function(confirm_onclick);
|
||||
button.removeAttribute("onclick");
|
||||
button.onclick = function(event)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue