From 3a11cfd603b686e0063aa77dff1aec0a55a765fb Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 14 Oct 2022 01:20:08 -0700 Subject: [PATCH] rename classname to className --- files/assets/js/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);