Skip to content

Commit 9a5abfc

Browse files
authored
Update index.html
1 parent 935b2b9 commit 9a5abfc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

demo/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,16 @@
356356
} else {
357357
http.open('GET', location.href + '?type=option&option=' + type.name + '&state=' + ((type.checked == true) ? 'on' : 'off'), true);
358358
}
359+
// DEMO CLEANUP CRAP
360+
if (rto != null && type.checked == true) {
361+
i = 1;
362+
while ( (zb = document.getElementById('btn-toggle-z'+i)) != null ) {
363+
if (zb.name != type.name) {
364+
zb.checked = false;
365+
i++;
366+
}
367+
}
368+
}
359369

360370
http.send(null);
361371
}

0 commit comments

Comments
 (0)