multitimer: reset alarm's last sounding time when enabling

pull/2781/head
Rob Pilling 2023-06-30 21:05:32 +01:00
parent 03a0c5264d
commit 8cf0782d93
1 changed files with 8 additions and 2 deletions

View File

@ -281,7 +281,10 @@ function editTimer(idx, a) {
},
"Enabled": {
value: a.on,
onchange: v => a.on = v
onchange: v => {
delete a.last;
a.on = v;
}
},
"Hours": {
value: t.hrs, min: 0, max: 23, wrap: true,
@ -607,7 +610,10 @@ function editAlarm(idx, a) {
},
"Enabled": {
value: a.on,
onchange: v => a.on = v
onchange: v => {
delete a.last;
a.on = v;
}
},
"Hours": {
value: t.hrs, min: 0, max: 23, wrap: true,