Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Datepicker: Fixed #7043 - Using multiple months always render…

…s 6 rows of dates even if only 5 are needed."

This reverts commit 5e1032e.
  • Loading branch information...
commit 804ba0a2df3a98db5929474daa3f664b7a3d5f29 1 parent 2b84107
@scottgonzalez scottgonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.datepicker.js
View
2  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>';
Please sign in to comment.
Something went wrong with that request. Please try again.