Datepicker: Fixed display of month and year dropdowns when showing month after year.

Fixes #4420 - showMonthAfterYear make calendar disorder.

Thanks bhornseth for the patch.
This commit is contained in:
Scott González 2009-12-04 04:02:55 +00:00
parent 707539f3cf
commit cc9c8a3464

View File

@ -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;
},