[Alarms & Timers] Add missing require("sched")
parent
b7b64c2cfe
commit
65f8e20575
|
|
@ -20,4 +20,5 @@
|
||||||
0.19: Ensure rescheduled alarms that already fired have 'last' reset
|
0.19: Ensure rescheduled alarms that already fired have 'last' reset
|
||||||
0.20: Use the new 'sched' factories to initialize new alarms/timers
|
0.20: Use the new 'sched' factories to initialize new alarms/timers
|
||||||
0.21: Fix time reset after a day of week change (#1676)
|
0.21: Fix time reset after a day of week change (#1676)
|
||||||
0.22: Refactor some methods to scheduling library
|
0.22: Refactor some methods to scheduling library
|
||||||
|
0.23: Fix regression with Days of Week (#1735)
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ function editAlarm(alarmIndex, alarm) {
|
||||||
value: "SMTWTFS".split("").map((d,n)=>a.dow&(1<<n)?d:".").join(""),
|
value: "SMTWTFS".split("").map((d,n)=>a.dow&(1<<n)?d:".").join(""),
|
||||||
onchange: () => editDOW(a.dow, d => {
|
onchange: () => editDOW(a.dow, d => {
|
||||||
a.dow = d;
|
a.dow = d;
|
||||||
a.t = encodeTime(t);
|
a.t = require("sched").encodeTime(t);
|
||||||
editAlarm(alarmIndex, a);
|
editAlarm(alarmIndex, a);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "alarm",
|
"id": "alarm",
|
||||||
"name": "Alarms & Timers",
|
"name": "Alarms & Timers",
|
||||||
"shortName": "Alarms",
|
"shortName": "Alarms",
|
||||||
"version": "0.22",
|
"version": "0.23",
|
||||||
"description": "Set alarms and timers on your Bangle",
|
"description": "Set alarms and timers on your Bangle",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,alarm,widget",
|
"tags": "tool,alarm,widget",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue