forked from MarseyWorld/MarseyWorld
rename classname to className
parent
b06ee9ac9b
commit
3a11cfd603
|
@ -38,8 +38,8 @@ function postToastLoad(xhr, className, extraActionsOnSuccess, extraActionsOnErro
|
||||||
if (typeof(button1) == 'boolean')
|
if (typeof(button1) == 'boolean')
|
||||||
location.reload()
|
location.reload()
|
||||||
else {
|
else {
|
||||||
document.getElementById(button1).classList.toggle(classname);
|
document.getElementById(button1).classList.toggle(className);
|
||||||
document.getElementById(button2).classList.toggle(classname);
|
document.getElementById(button2).classList.toggle(className);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (extraActionsOnSuccess) extraActionsOnSuccess(xhr);
|
if (extraActionsOnSuccess) extraActionsOnSuccess(xhr);
|
||||||
|
|
Loading…
Reference in New Issue