mirror of
https://github.com/wled/WLED.git
synced 2025-04-29 01:07:18 +00:00
Add "on":true to playlist JSON.
This commit is contained in:
parent
465b43be6a
commit
7d05236514
@ -1704,7 +1704,7 @@ function setLor(i)
|
|||||||
function setPreset(i)
|
function setPreset(i)
|
||||||
{
|
{
|
||||||
var obj = {"ps": i};
|
var obj = {"ps": i};
|
||||||
if (isPlaylist(i)) obj.on = true;
|
if (isPlaylist(i)) obj.on = true; //force on
|
||||||
showToast("Loading preset " + pName(i) +" (" + i + ")");
|
showToast("Loading preset " + pName(i) +" (" + i + ")");
|
||||||
requestJson(obj);
|
requestJson(obj);
|
||||||
}
|
}
|
||||||
@ -1737,6 +1737,7 @@ function saveP(i,pl)
|
|||||||
} else {
|
} else {
|
||||||
if (pl) {
|
if (pl) {
|
||||||
obj.playlist = plJson[i];
|
obj.playlist = plJson[i];
|
||||||
|
obj.on = true;
|
||||||
obj.o = true;
|
obj.o = true;
|
||||||
} else {
|
} else {
|
||||||
obj.ib = gId(`p${i}ibtgl`).checked;
|
obj.ib = gId(`p${i}ibtgl`).checked;
|
||||||
@ -1777,6 +1778,7 @@ function testPl(i,bt) {
|
|||||||
bt.innerHTML = "<i class='icons btn-icon'></i>Stop";
|
bt.innerHTML = "<i class='icons btn-icon'></i>Stop";
|
||||||
var obj = {};
|
var obj = {};
|
||||||
obj.playlist = plJson[i];
|
obj.playlist = plJson[i];
|
||||||
|
obj.on = true;
|
||||||
requestJson(obj);
|
requestJson(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1503
wled00/html_ui.h
1503
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user