aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.datepicker.js
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2009-07-05 05:26:14 +0000
committerKeith Wood <kbwood.au@gmail.com>2009-07-05 05:26:14 +0000
commitbf500e6b8bbe89ca3a07db83c5818dfafc500a5b (patch)
treeb6ed61187807bab769888f1a453c66efbaae058f /ui/ui.datepicker.js
parenta84392c270a2b1a4638be9e4af44166587f9bf83 (diff)
downloadjquery-ui-bf500e6b8bbe89ca3a07db83c5818dfafc500a5b.tar.gz
jquery-ui-bf500e6b8bbe89ca3a07db83c5818dfafc500a5b.zip
Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r--ui/ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index 702d5ee8e..f82ef3efc 100644
--- a/ui/ui.datepicker.js
+++ b/ui/ui.datepicker.js
@@ -1402,7 +1402,7 @@ $.extend(Datepicker.prototype, {
(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
(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 ? '&#xa0;' : // 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' : '') +