r2864 - Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths

r2864 - Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths


Author: kbwood.au
Date: Sat Jul 4 22:26:14 2009
New Revision: 2864
Modified:
trunk/ui/ui.datepicker.js
Log:
Datepicker: Fixed #4634 Incorrect month number when using selectOtherMonths
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js    (original)
+++ trunk/ui/ui.datepicker.js    Sat Jul 4 22:26:14 2009
@@ -1402,7 +1402,7 @@
                            (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 ? '<span class="ui-state-default">' +
printDate.getDate() + '</span>' : '<a class="ui-state-default' +
                            (printDate.getTime() == today.getTime() ? '
ui-state-highlight' : '') +