You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I noticed that when the current day (today) is on the first week of the painted
month, it does not get the 'today' class.
Problem is, when filling the first week inside _buildCalendar, no class is
specified ever:
/* The first week */
for (var j = startIndex; j < 7; j++) {
a_d[0][j] = {
d: daysIndex
, m: currentMonth
, y: currentYear
, b: badDates[daysIndex]
};
daysIndex++;
}
I have fixed this, and added another small improvement to highlight both the
"today" (current day), and the "selected" date (that is, the currently selected
value.
The fix and improvement is simple, I am attaching a patch.
Also, you will need to change the .css as desired to reflect the new
highlights. I have changed the:
div.datepicker table tbody tr td.today {
...
}
style to:
div.datepicker table tbody tr td.today {
font-weight: bold;
}
div.datepicker table tbody tr td.selected {
background: #c4d5e3;
}
Original issue reported on code.google.com by airadier on 2 Aug 2012 at 10:13
Original issue reported on code.google.com by
airadier
on 2 Aug 2012 at 10:13Attachments:
The text was updated successfully, but these errors were encountered: