aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-05-07 06:32:13 +0900
committerScott González <scott.gonzalez@gmail.com>2011-05-11 11:10:37 -0400
commit5e1032ec74feba976c91de275605174c87710a6a (patch)
tree96a308c23e38085b877acbd9ecfc84d21843137e /ui/jquery.ui.datepicker.js
parent36110e07d471ee0d59d9ac5b5077deda7005d155 (diff)
downloadjquery-ui-5e1032ec74feba976c91de275605174c87710a6a.tar.gz
jquery-ui-5e1032ec74feba976c91de275605174c87710a6a.zip
Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even if only 5 are needed.
(cherry picked from commit ac459ff7df4904cb8601d4efb95107177ecb40e0)
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-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 06d49304a..549b49267 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -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>';