From bfbc1ebb130b75995e8ca15fa4a330ed55babcc1 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Fri, 16 Dec 2022 23:20:49 +0100 Subject: [PATCH] Fix all segments checkbox --- wled00/data/index.js | 3 +- wled00/html_ui.h | 1480 +++++++++++++++++++++--------------------- 2 files changed, 742 insertions(+), 741 deletions(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index f1ad7220..1ba88f95 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -796,11 +796,12 @@ function populateSegments(s) gId('segcont').innerHTML = cn; let noNewSegs = (lowestUnused >= maxSeg); resetUtil(noNewSegs); + if (gId('selall')) gId('selall').checked = true; for (var i = 0; i <= lSeg; i++) { updateLen(i); updateTrail(gId(`seg${i}bri`)); gId(`segr${i}`).style.display = "none"; - if (!gId(`seg${i}sel`).checked && gId('selall')) gId('selall').checked = false; + if (!gId(`seg${i}sel`).checked && gId('selall')) gId('selall').checked = false; // uncheck if at least one is unselected. } if (segCount < 2) gId(`segd${lSeg}`).style.display = "none"; if (!isM && !noNewSegs && (cfg.comp.seglen?parseInt(gId(`seg${lSeg}s`).value):0)+parseInt(gId(`seg${lSeg}e`).value)