Datepicker: Fixes #3647: added correct class name to highlight selected day

This commit is contained in:
Ca-Phun Ung 2008-12-20 16:09:04 +00:00
parent 2c4cd69440
commit 7b1183d307

View File

@ -1484,7 +1484,7 @@ $.extend(Datepicker.prototype, {
(unselectable ? printDate.getDate() : '<a class="ui-state-default' + (unselectable ? printDate.getDate() : '<a class="ui-state-default' +
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') + (printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
(printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range
' ' + this._currentClass : '') + // highlight selected day ' ui-state-active' : '') + // highlight selected day
'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display for this month '" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display for this month
printDate.setDate(printDate.getDate() + 1); printDate.setDate(printDate.getDate() + 1);
printDate = this._daylightSavingAdjust(printDate); printDate = this._daylightSavingAdjust(printDate);