Give button_with_spinner's onclick event to the original function.
This commit is contained in:
parent
85055cdea2
commit
0fd18221b1
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ function init_button_with_spinner()
|
|||
|
||||
const wrapped_onclick = button.onclick;
|
||||
button.removeAttribute('onclick');
|
||||
button.onclick = function()
|
||||
button.onclick = function(event)
|
||||
{
|
||||
if (button.dataset.spinnerGroup)
|
||||
{
|
||||
|
@ -175,7 +175,7 @@ function init_button_with_spinner()
|
|||
{
|
||||
window[button.dataset.spinnerOpener]();
|
||||
}
|
||||
const ret = wrapped_onclick();
|
||||
const ret = wrapped_onclick(event);
|
||||
if (ret === spinner.BAIL)
|
||||
{
|
||||
window[button.dataset.spinnerCloser]();
|
||||
|
|
Loading…
Reference in a new issue