mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Changed comparison to highlight selected date, fixes #5676 (DatePicker Dialog defaultDate incorrect behaviour)
This commit is contained in:
parent
aa416fcfd9
commit
eb13c01722
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -1491,7 +1491,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
(otherMonth && !showOtherMonths ? ' ' : // display for other months
|
(otherMonth && !showOtherMonths ? ' ' : // display for other months
|
||||||
(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
|
(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
|
||||||
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
|
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
|
||||||
(printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
|
(printDate.getTime() == selectedDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
|
||||||
(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months
|
(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months
|
||||||
'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date
|
'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date
|
||||||
printDate.setDate(printDate.getDate() + 1);
|
printDate.setDate(printDate.getDate() + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user