diff options
author | Keith Wood <kbwood.au@gmail.com> | 2010-01-10 04:45:03 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2010-01-10 04:45:03 +0000 |
commit | 6047f99ec4bea69db2422f5a393501daf1408c9a (patch) | |
tree | c031be011ec93372cd231cedb9c7596f39949e41 | |
parent | cc9359ce645172e63fec989e1b408d5dd75feee7 (diff) | |
download | jquery-ui-6047f99ec4bea69db2422f5a393501daf1408c9a.tar.gz jquery-ui-6047f99ec4bea69db2422f5a393501daf1408c9a.zip |
Datepicker: Fixed #5022 numberOfMonths with one column multiple rows doesn't display the next button
-rw-r--r-- | ui/jquery.ui.datepicker.js | 15 |
1 files changed, 9 insertions, 6 deletions
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 += '<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 + '">' + |