diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-12-04 04:02:55 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-12-04 04:02:55 +0000 |
commit | cc9c8a3464295e6fc2ecf95c50c733a1f210e732 (patch) | |
tree | fa6d69c4f6e04d4cd219bbccdd1fc2ad8bdb10a1 /ui/jquery.ui.datepicker.js | |
parent | 707539f3cf3d118b7cb0a3b08e6d4dd98db46947 (diff) | |
download | jquery-ui-cc9c8a3464295e6fc2ecf95c50c733a1f210e732.tar.gz jquery-ui-cc9c8a3464295e6fc2ecf95c50c733a1f210e732.zip |
Datepicker: Fixed display of month and year dropdowns when showing month after year.
Fixes #4420 - showMonthAfterYear make calendar disorder.
Thanks bhornseth for the patch.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index b81f0ee29..bc3a322ab 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -1541,7 +1541,7 @@ $.extend(Datepicker.prototype, { } html += this._get(inst, 'yearSuffix'); if (showMonthAfterYear) - html += (secondary || changeMonth || changeYear ? ' ' : '') + monthHtml; + html += ((secondary || changeMonth || changeYear) && (!(changeMonth && changeYear)) ? ' ' : '') + monthHtml; html += '</div>'; // Close datepicker_header return html; }, |