Skip to content

Commit bf500e6

Browse files
committed
Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths
1 parent a84392c commit bf500e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ $.extend(Datepicker.prototype, {
14021402
(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
14031403
((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
14041404
(unselectable ? '' : ' onclick="DP_jQuery.datepicker._selectDay(\'#' +
1405-
inst.id + '\',' + drawMonth + ',' + drawYear + ', this);return false;"') + '>' + // actions
1405+
inst.id + '\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;"') + '>' + // actions
14061406
(otherMonth && !showOtherMonths ? ' ' : // display for other months
14071407
(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
14081408
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +

0 commit comments

Comments
 (0)