r3487 committed - Datepicker: Fixed display of month and year dropdowns when showing mon...

r3487 committed - Datepicker: Fixed display of month and year dropdowns when showing mon...

Revision: 3487
Author: scott.gonzalez
Date: Thu Dec 3 20:02:55 2009
Log: Datepicker: Fixed display of month and year dropdowns when showing
month after year.
Fixes #4420 - showMonthAfterYear make calendar disorder.
Thanks bhornseth for the patch.
http://code.google.com/p/jquery-ui/source/detail?r=3487
Modified:
/trunk/ui/jquery.ui.datepicker.js
=======================================
--- /trunk/ui/jquery.ui.datepicker.js    Tue Dec 1 16:33:56 2009
+++ /trunk/ui/jquery.ui.datepicker.js    Thu Dec 3 20:02:55 2009
@@ -1541,7 +1541,7 @@
        }
        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;
    },
--