Datepicker: Reset this.maxRows (rows in a month) on each row in a multi-row datepicker.

(cherry picked from commit ed7802090f)
This commit is contained in:
kborchers 2011-06-13 10:54:40 -05:00 committed by Scott González
parent 57b9e9d399
commit 4878ed8c1a

View File

@ -1471,6 +1471,7 @@ $.extend(Datepicker.prototype, {
var html = ''; var html = '';
for (var row = 0; row < numMonths[0]; row++) { for (var row = 0; row < numMonths[0]; row++) {
var group = ''; var group = '';
this.maxRows = 4;
for (var col = 0; col < numMonths[1]; col++) { for (var col = 0; col < numMonths[1]; col++) {
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
var cornerClass = ' ui-corner-all'; var cornerClass = ' ui-corner-all';