aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-12-04 04:02:55 +0000
committerScott González <scott.gonzalez@gmail.com>2009-12-04 04:02:55 +0000
commitcc9c8a3464295e6fc2ecf95c50c733a1f210e732 (patch)
treefa6d69c4f6e04d4cd219bbccdd1fc2ad8bdb10a1 /ui/jquery.ui.datepicker.js
parent707539f3cf3d118b7cb0a3b08e6d4dd98db46947 (diff)
downloadjquery-ui-cc9c8a3464295e6fc2ecf95c50c733a1f210e732.tar.gz
jquery-ui-cc9c8a3464295e6fc2ecf95c50c733a1f210e732.zip
Datepicker: Fixed display of month and year dropdowns when showing month after year.
Fixes #4420 - showMonthAfterYear make calendar disorder. Thanks bhornseth for the patch.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index b81f0ee29..bc3a322ab 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -1541,7 +1541,7 @@ $.extend(Datepicker.prototype, {
}
html += this._get(inst, 'yearSuffix');
if (showMonthAfterYear)
- html += (secondary || changeMonth || changeYear ? '&#xa0;' : '') + monthHtml;
+ html += ((secondary || changeMonth || changeYear) && (!(changeMonth && changeYear)) ? '&#xa0;' : '') + monthHtml;
html += '</div>'; // Close datepicker_header
return html;
},