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

Fix bug with updating slider values programatically

This commit is contained in:
Ian Gray
2022-01-12 23:53:55 +00:00
parent c059e30763
commit dd0fe3165f
3 changed files with 6 additions and 3 deletions

1
data/js/controls.js vendored
View File

@ -500,6 +500,7 @@ function start() {
break;
case UPDATE_SLIDER:
$("#sl" + data.id).attr("value", data.value)
slider_move($("#id" + data.id), data.value, "100", false);
if(data.hasOwnProperty('elementStyle')) {
$("#sl" + data.id).attr("style", data.elementStyle);