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:
2
data/js/controls.js
vendored
2
data/js/controls.js
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user