Skip to content
Permalink
Browse files

Datepicker: Fixed #5022 numberOfMonths with one column multiple rows …

…doesn't display the next button
  • Loading branch information...
Keith Wood
Keith Wood committed Jan 10, 2010
1 parent cc9359c commit 6047f99ec4bea69db2422f5a393501daf1408c9a
Showing with 9 additions and 6 deletions.
  1. +9 −6 ui/jquery.ui.datepicker.js
@@ -1412,12 +1412,15 @@ $.extend(Datepicker.prototype, {
var cornerClass = ' ui-corner-all';
var calender = '';
if (isMultiMonth) {
calender += '<div class="ui-datepicker-group ui-datepicker-group-';
switch (col) {
case 0: calender += 'first'; cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;
case numMonths[1]-1: calender += 'last'; cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;
default: calender += 'middle'; cornerClass = ''; break;
}
calender += '<div class="ui-datepicker-group';
if (numMonths[1] > 1)
switch (col) {
case 0: calender += ' ui-datepicker-group-first';
cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;
case numMonths[1]-1: calender += ' ui-datepicker-group-last';
cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;
default: calender += ' ui-datepicker-group-middle'; cornerClass = ''; break;
}
calender += '">';
}
calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' +

0 comments on commit 6047f99

Please sign in to comment.
You can’t perform that action at this time.