|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (distributions.length) { |
|
|
if (distributions.length) { |
|
|
|
|
|
var fillMode = 'solid'; |
|
|
|
|
|
var dayToday = app.formatDate(new Date()); |
|
|
for (var i = 0; i < distributions.length; i++) { |
|
|
for (var i = 0; i < distributions.length; i++) { |
|
|
|
|
|
if(distributions[i].date < dayToday) { |
|
|
|
|
|
fillMode = 'outline'; |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
fillMode = 'solid'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
app.calendar.attrs.push({ |
|
|
app.calendar.attrs.push({ |
|
|
key: distributions[i].date, |
|
|
key: distributions[i].date, |
|
|
highlight: true, |
|
|
|
|
|
dates: distributions[i].date |
|
|
|
|
|
|
|
|
dates: distributions[i].date, |
|
|
|
|
|
highlight: { |
|
|
|
|
|
color: 'green', |
|
|
|
|
|
fillMode: fillMode |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (distributions[i].date == dateFormatCompare) { |
|
|
if (distributions[i].date == dateFormatCompare) { |