Update ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml

Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
FeTetra 2024-10-05 13:59:14 -04:00 committed by GitHub
commit 4f3c284f15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,8 +135,7 @@ function onSubmit(){
generateRandomSkew(btn);
}
function onCheckboxChange(checkbox) {
const labelId = checkbox.id.replace('checkbox', 'label');
const label = document.getElementById(labelId);
const label = checkbox.parentElement;
if (checkbox.checked) {
label.classList.add('selected');
} else {