diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-12 08:17:16 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-12 08:17:16 -0400 |
commit | 1845015c09d527abde8095f8e2209f06d879a2b3 (patch) | |
tree | 7b2045feac6080ca01e55636d3005970e9755752 /ui/jquery.ui.datepicker.js | |
parent | c89bbc1839ec7bcbb2834dc2a148bade2a538217 (diff) | |
download | jquery-ui-1845015c09d527abde8095f8e2209f06d879a2b3.tar.gz jquery-ui-1845015c09d527abde8095f8e2209f06d879a2b3.zip |
Revert "Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even if only 5 are needed."
This reverts commit ac459ff7df4904cb8601d4efb95107177ecb40e0.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index e9955ce79..de2df6064 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -1494,7 +1494,7 @@ $.extend(Datepicker.prototype, { if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) inst.selectedDay = Math.min(inst.selectedDay, daysInMonth); var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; - var numRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate + var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows calender += '<tr>'; |