1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 06:10:18 +00:00

Fix issue with switchers getting out of sync with the DOM if updated.

This commit is contained in:
Ian Gray
2022-01-12 23:12:45 +00:00
parent 5909471962
commit c059e30763
3 changed files with 4 additions and 4 deletions

2
data/js/controls.js vendored
View File

@ -631,7 +631,7 @@ function padclick(type, number, isdown) {
function switcher(number, state) {
if (state == null) {
if ($("#s" + number).is(":checked")) {
if (!$("#sl" + number).hasClass("checked")) {
websock.send("sactive:" + number);
$("#sl" + number).addClass("checked");
} else {