aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.datepicker.js
diff options
context:
space:
mode:
authorCa-Phun Ung <pazu2k@gmail.com>2009-02-01 05:50:12 +0000
committerCa-Phun Ung <pazu2k@gmail.com>2009-02-01 05:50:12 +0000
commit1866e1382f7ef89721432cb75e505356f067f99d (patch)
treeba55c75c6f2439476bc0205a6819d0a7d8543ecc /ui/ui.datepicker.js
parentce0daae2327dceaaf5dabc0eb92df6b0f20789af (diff)
downloadjquery-ui-1866e1382f7ef89721432cb75e505356f067f99d.tar.gz
jquery-ui-1866e1382f7ef89721432cb75e505356f067f99d.zip
datepicker: #4032 - Incorrect layout in multiple month rows. I noticed the static tests were recently updated with a row-break so I have added the row-break fix for now so it will be ready for the release. We should seriously consider inline-block.
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r--ui/ui.datepicker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index 9237de33f..eb3162f02 100644
--- a/ui/ui.datepicker.js
+++ b/ui/ui.datepicker.js
@@ -1400,7 +1400,8 @@ $.extend(Datepicker.prototype, {
drawMonth = 0;
drawYear++;
}
- calender += '</tbody></table>' + (isMultiMonth ? '</div>' : '');
+ calender += '</tbody></table>' + (isMultiMonth ? '</div>' +
+ ((numMonths[0] > 0 && col == numMonths[1]-1) ? '<div class="ui-datepicker-row-break"></div>' : '') : '');
group += calender;
}
html += group;