]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even...
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>
Fri, 6 May 2011 21:32:13 +0000 (06:32 +0900)
committerScott González <scott.gonzalez@gmail.com>
Wed, 11 May 2011 15:10:37 +0000 (11:10 -0400)
(cherry picked from commit ac459ff7df4904cb8601d4efb95107177ecb40e0)

ui/jquery.ui.datepicker.js

index 06d49304abf22adb1afdd62e2cd517988de0098d..549b4926752101990d532eb845543205ab056662 100644 (file)
@@ -1485,7 +1485,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 = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
+                               var numRows = 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>';