aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-11 08:08:37 -0700
committerScott González <scott.gonzalez@gmail.com>2011-05-11 08:08:37 -0700
commitd3e21cf59ab6273f9b080c56afbc71fcf76139da (patch)
treef8e05fb4f9f953f7389425707ae1d98348066160 /ui
parent1298f939b9df464b76c831eb8b4014e7fe16816c (diff)
parentac459ff7df4904cb8601d4efb95107177ecb40e0 (diff)
downloadjquery-ui-d3e21cf59ab6273f9b080c56afbc71fcf76139da.tar.gz
jquery-ui-d3e21cf59ab6273f9b080c56afbc71fcf76139da.zip
Merge pull request #223 from kzys/trac-7043
Fixed #7043 - Datepicker: Using multiple months always renders 6 rows of dates even if only 5 are neededf
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 12323672a..662b49f86 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -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>';