mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
707539f3cf
commit
cc9c8a3464
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user