Skip to content
Permalink
Browse files

Datepicker: Fixed display of month and year dropdowns when showing mo…

…nth after year.

Fixes #4420 - showMonthAfterYear make calendar disorder.

Thanks bhornseth for the patch.
  • Loading branch information
scottgonzalez committed Dec 4, 2009
1 parent 707539f commit cc9c8a3464295e6fc2ecf95c50c733a1f210e732
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
},

0 comments on commit cc9c8a3

Please sign in to comment.
You can’t perform that action at this time.