]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even... 223/head
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>
Fri, 6 May 2011 21:32:13 +0000 (06:32 +0900)
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>
Fri, 6 May 2011 21:32:13 +0000 (06:32 +0900)
ui/jquery.ui.datepicker.js

index 12323672ab5e08accf9c25e04a5fc3870a8f9c37..662b49f86dba0a8acc981a8f6c89872ed376e394 100644 (file)
@@ -1489,7 +1489,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>';