mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Hightlight the curerent date, not the selected date. Fixes #5984 - Datepicker showing multiple months highlights selected day in all of them
This commit is contained in:
parent
d380099116
commit
a936eb3c09
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -1493,7 +1493,7 @@ $.extend(Datepicker.prototype, {
|
||||
(otherMonth && !showOtherMonths ? ' ' : // display for other months
|
||||
(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
|
||||
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
|
||||
(printDate.getTime() == selectedDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
|
||||
(printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
|
||||
(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months
|
||||
'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date
|
||||
printDate.setDate(printDate.getDate() + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user