mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths
This commit is contained in:
parent
a84392c270
commit
bf500e6b8b
@ -1402,7 +1402,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
|
(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
|
||||||
((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
|
((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
|
||||||
(unselectable ? '' : ' onclick="DP_jQuery.datepicker._selectDay(\'#' +
|
(unselectable ? '' : ' onclick="DP_jQuery.datepicker._selectDay(\'#' +
|
||||||
inst.id + '\',' + drawMonth + ',' + drawYear + ', this);return false;"') + '>' + // actions
|
inst.id + '\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;"') + '>' + // actions
|
||||||
(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' : '') +
|
||||||
|
Loading…
Reference in New Issue
Block a user