From: Scott González Date: Fri, 4 Dec 2009 04:02:55 +0000 (+0000) Subject: Datepicker: Fixed display of month and year dropdowns when showing month after year. X-Git-Tag: 1.8a2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc9c8a3464295e6fc2ecf95c50c733a1f210e732;p=jquery-ui.git Datepicker: Fixed display of month and year dropdowns when showing month after year. Fixes #4420 - showMonthAfterYear make calendar disorder. Thanks bhornseth for the patch. --- 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 += ''; // Close datepicker_header return html; },