Skip to content

Commit

Permalink
Change default day to day0 if all days disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Häkkänen committed Nov 26, 2024
1 parent 3c8dc2e commit c174775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/capmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ function DayControl(controlDiv) {
}
setDay0UI.appendChild(dayTextElement)
controlDiv.appendChild(setDay0UI)
selectedDAY === 0 && setActiveButton(setDay0UI)
setEventListener(setDay0UI, 0)
}

Expand All @@ -689,7 +690,6 @@ function DayControl(controlDiv) {

setDay1UI.appendChild(dayTextElement)
controlDiv.appendChild(setDay1UI)
selectedDAY === 0 && setActiveButton(setDay1UI)
setEventListener(setDay1UI, 1, 'Show events for tomorrow.')
}

Expand Down

0 comments on commit c174775

Please sign in to comment.