Bug 321383 Multiweek view boxes are colored incorrectly, r=mvl

This commit is contained in:
jminta%gmail.com 2006-02-13 19:18:57 +00:00
Родитель 05106adddd
Коммит be9aa23f63
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -865,8 +865,13 @@
//XXX rename these css classes
// Set the box-class depending on if this box displays a day in the
// main month being shown or not.
var boxClass = "calendar-month-day-box-" +
var boxClass;
if (this.showFullMonth) {
boxClass = "calendar-month-day-box-" +
(mainMonth == date.month ? "even" : "odd");
} else {
boxClass = "calendar-month-day-box-even";
}
// XXX isWeekend?
if (date.weekday == 0 || date.weekday == 6)
boxClass = "calendar-month-day-box-weekend " + boxClass;