From cc9c8a3464295e6fc2ecf95c50c733a1f210e732 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 4 Dec 2009 04:02:55 +0000 Subject: [PATCH] Datepicker: Fixed display of month and year dropdowns when showing month after year. Fixes #4420 - showMonthAfterYear make calendar disorder. Thanks bhornseth for the patch. --- ui/jquery.ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }, -- 2.39.5