Update app.js

pull/1683/head
frigis1 2022-04-08 17:47:20 -07:00 committed by GitHub
parent 6e68c64623
commit 31b9dd32ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -187,6 +187,10 @@ function editAlarm(alarmIndex, alarm) {
const menu = {
'': { 'title': alarmTitle },
'< Back' : () => showAlarmMenu(),
'Days': {
value: "SMTWTFS".split("").map((d,n)=>a.dow&(1<<n)?d:".").join(""),
onchange: () => editDOW(a.dow, d=>{a.dow=d;editAlarm(alarmIndex,a)})
},
'Hours': {
value: t.hrs, min : 0, max : 23, wrap : true,
onchange: v => t.hrs=v
@ -205,10 +209,6 @@ function editAlarm(alarmIndex, alarm) {
format: v=>v?"Yes":"No",
onchange: v=>a.rp=v
},
'Days': {
value: "SMTWTFS".split("").map((d,n)=>a.dow&(1<<n)?d:".").join(""),
onchange: () => editDOW(a.dow, d=>{a.dow=d;editAlarm(alarmIndex,a)})
},
'Vibrate': require("buzz_menu").pattern(a.vibrate, v => a.vibrate=v ),
'Auto snooze': {
value: a.as,