Fix for incorrect repeatable segment.

This commit is contained in:
Blaz Kristan 2022-01-24 17:18:57 +01:00
parent 34865f797f
commit 70a59daa6f
3 changed files with 1266 additions and 1265 deletions

View File

@ -360,7 +360,8 @@ button {
#slider0, #slider1, #slider2, #slider3, #slider4 {
background: var(--c-2);
width: 310px;
max-width: 310px;
min-width: 280px;
margin: auto;
border-radius: 15px;
}

View File

@ -1741,7 +1741,7 @@ function rptSeg(s)
var rev = gId(`seg${s}rev`).checked;
var mi = gId(`seg${s}mi`).checked;
var sel = gId(`seg${s}sel`).checked;
var obj = {"seg": {"id": 0, "n": name, "start": start, "stop": (cfg.comp.seglen?start:0)+stop, "rev": rev, "mi": mi, "on": !powered[s], "bri": parseInt(gId(`seg${s}bri`).value), "sel": sel}};
var obj = {"seg": {"id": s, "n": name, "start": start, "stop": (cfg.comp.seglen?start:0)+stop, "rev": rev, "mi": mi, "on": !powered[s], "bri": parseInt(gId(`seg${s}bri`).value), "sel": sel}};
if (gId(`seg${s}grp`)) {
var grp = parseInt(gId(`seg${s}grp`).value);
var spc = parseInt(gId(`seg${s}spc`).value);

File diff suppressed because it is too large Load Diff