mirror of https://github.com/espruino/BangleApps
0.10: Fix auto-snooze option (this stopped new alarms being added) (fix #506)
parent
56ce4c30e1
commit
8309804985
|
@ -7,3 +7,4 @@
|
|||
0.07: Don't overwrite existing settings on app update
|
||||
0.08: Make alarm scheduling more reliable
|
||||
0.09: Add per alarm auto-snooze option
|
||||
0.10: Fix auto-snooze option (this stopped new alarms being added) (fix #506)
|
||||
|
|
|
@ -8,7 +8,7 @@ var alarms = require("Storage").readJSON("alarm.json",1)||[];
|
|||
msg : "Eat chocolate",
|
||||
last : 0, // last day of the month we alarmed on - so we don't alarm twice in one day!
|
||||
rp : true, // repeat
|
||||
as : true, // auto snooze
|
||||
as : false, // auto snooze
|
||||
}
|
||||
];*/
|
||||
|
||||
|
@ -45,6 +45,7 @@ function editAlarm(alarmIndex) {
|
|||
var mins = 0;
|
||||
var en = true;
|
||||
var repeat = true;
|
||||
var as = false;
|
||||
if (!newAlarm) {
|
||||
var a = alarms[alarmIndex];
|
||||
hrs = 0|a.hr;
|
||||
|
@ -74,7 +75,7 @@ function editAlarm(alarmIndex) {
|
|||
onchange: v=>repeat=v
|
||||
},
|
||||
'Auto snooze': {
|
||||
value: en,
|
||||
value: as,
|
||||
format: v=>v?"Yes":"No",
|
||||
onchange: v=>as=v
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue