From 6047f99ec4bea69db2422f5a393501daf1408c9a Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Sun, 10 Jan 2010 04:45:03 +0000 Subject: Datepicker: Fixed #5022 numberOfMonths with one column multiple rows doesn't display the next button --- ui/jquery.ui.datepicker.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 9b39983b4..428a24043 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -1412,12 +1412,15 @@ $.extend(Datepicker.prototype, { var cornerClass = ' ui-corner-all'; var calender = ''; if (isMultiMonth) { - calender += '
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 += '
' + -- cgit v1.2.3