Update index.html

master
sfeakes 2018-06-25 17:21:58 -05:00 committed by GitHub
parent 935b2b90c0
commit 9a5abfc012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -356,6 +356,16 @@
} else {
http.open('GET', location.href + '?type=option&option=' + type.name + '&state=' + ((type.checked == true) ? 'on' : 'off'), true);
}
// DEMO CLEANUP CRAP
if (rto != null && type.checked == true) {
i = 1;
while ( (zb = document.getElementById('btn-toggle-z'+i)) != null ) {
if (zb.name != type.name) {
zb.checked = false;
i++;
}
}
}
http.send(null);
}