]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Reset this.maxRows (rows in a month) on each row in a multi-row datepicker.
authorkborchers <k_borchers@yahoo.com>
Mon, 13 Jun 2011 15:54:40 +0000 (10:54 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 16 Jun 2011 17:35:56 +0000 (13:35 -0400)
(cherry picked from commit ed7802090fc6ec8109d69c91a425adfffb8cff39)

ui/jquery.ui.datepicker.js

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