mirror of https://github.com/espruino/BangleApps
sched: interface.html, Monday is the first day of the week
parent
97d648d4af
commit
d28d696dea
|
@ -175,9 +175,11 @@ function renderAlarm(alarm, exists) {
|
|||
option.value = day;
|
||||
option.text = day;
|
||||
option.selected = alarm.dow & (1 << i);
|
||||
selectDays.appendChild(option);
|
||||
if(day !== "Sun")
|
||||
selectDays.appendChild(option);
|
||||
return option;
|
||||
});
|
||||
selectDays.appendChild(options.find(o => o.text === "Sun"));
|
||||
selectDays.onchange = (e => {
|
||||
alarm.dow = options.reduce((bits, opt, i) => bits | (opt.selected ? 1 << i : 0), 0);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue