Skip to content

Commit

Permalink
Added extra statement to enforce the 'month' button changes to white
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsman142 committed May 30, 2017
1 parent a928b28 commit b17d883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions map.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
document.getElementById("radioDay").style.backgroundColor = "#fff";
document.getElementById("radioWeek").style.backgroundColor = "lightgrey";
document.getElementById("radioMonth").style.backrgoundColor = "#fff";
document.getElementById("radioMonth").style.backgroundColor = "#fff"; // NOTE: when switching from month to week data, the month button is stuck on "lightgrey" so this statement makes sure it is "#fff" instead
markers.forEach((marker, i) => {
if (!marker.incidentYear || !marker.isMapped) {
return;
Expand Down

0 comments on commit b17d883

Please sign in to comment.