diff --git a/files/assets/js/core.js b/files/assets/js/core.js index cd1be36e4..6e6461053 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -38,8 +38,8 @@ function postToastLoad(xhr, className, extraActionsOnSuccess, extraActionsOnErro if (typeof(button1) == 'boolean') location.reload() else { - document.getElementById(button1).classList.toggle(classname); - document.getElementById(button2).classList.toggle(classname); + document.getElementById(button1).classList.toggle(className); + document.getElementById(button2).classList.toggle(className); } } if (extraActionsOnSuccess) extraActionsOnSuccess(xhr);