parameters of getDateStatus() do not match with each other!
Brought to you by:
mishoo
getDateStatus( date, y,m,d ):
parameter "date, y, d" holds a correct date value, but "m" a false one. It should be different (i.e. in April: m should be 3, then 4, then 5). So special days could be falsely calculated, if m used.
for example:
01 April is a special day, but in the calendar 01 May will also be showed as a special day, because m stays always same.
Solution:
1: use "date"
2: correct "m"
Logged In: NO
I patched it :
1. Open calendar.js
2. Find around line 1150
var status = this.getDateStatus(date, year, month, iday);
3. Replace with
var tmonth = month;
if (cell.otherMonth && iday > 15) {
// End of previous month
tmonth = (tmonth-1)%12;
} else if (cell.otherMonth && iday < 15) {
// Begin of next month
tmonth = (tmonth+1)%12;
}
var status = this.getDateStatus(date, year, tmonth, iday);
4. Find around line 1161
var toolTip = this.getDateToolTip(date, year, month, iday);
5. Replace with
var toolTip = this.getDateToolTip(date, year, tmonth, iday);
That's all !