mirror of
https://github.com/s00500/ESPUI.git
synced 2025-11-27 23:03:16 +00:00
#320 Fix disabled buttons not being disabled
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
3
data/js/controls.js
vendored
3
data/js/controls.js
vendored
@@ -909,6 +909,9 @@ function selectchange(number) {
|
||||
}
|
||||
|
||||
function buttonclick(number, isdown) {
|
||||
if ($("#btn" + number).prop("disabled")) {
|
||||
return;
|
||||
}
|
||||
if (isdown) websock.send("bdown:" + number);
|
||||
else websock.send("bup:" + number);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user