Skip to content

Commit

Permalink
Datepicker: Fixed display of month and year dropdowns when showing mo…
Browse files Browse the repository at this point in the history
…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 cc9c8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -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;
},
Expand Down

0 comments on commit cc9c8a3

Please sign in to comment.