From bf500e6b8bbe89ca3a07db83c5818dfafc500a5b Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Sun, 5 Jul 2009 05:26:14 +0000 Subject: [PATCH] Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths --- ui/ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ? ' ' : // display for other months (unselectable ? '' + printDate.getDate() + '' : '