diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-12 08:18:06 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-12 08:18:06 -0400 |
commit | 804ba0a2df3a98db5929474daa3f664b7a3d5f29 (patch) | |
tree | 43dd30018ee6bd2d37da8faa2941c84d95fcde79 | |
parent | 2b84107b3149631f6f09b69af9bc3a61be32b7c2 (diff) | |
download | jquery-ui-804ba0a2df3a98db5929474daa3f664b7a3d5f29.tar.gz jquery-ui-804ba0a2df3a98db5929474daa3f664b7a3d5f29.zip |
Revert "Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even if only 5 are needed."
This reverts commit 5e1032ec74feba976c91de275605174c87710a6a.
-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 419e6b84b..996528937 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -1490,7 +1490,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>'; |