Datepicker: fixed #4085 - Can not display year and month correctly in Japanese

This commit is contained in:
Keith Wood 2009-04-10 07:55:52 +00:00
parent b94d5cf673
commit 5235b3bbd5

View File

@ -50,11 +50,10 @@
<link type="text/css" href="../demos.css" rel="stylesheet" /> <link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional[''])); $.datepicker.setDefaults($.datepicker.regional['']);
$("#datepicker").datepicker($.datepicker.regional['fr']); $("#datepicker").datepicker($.datepicker.regional['fr']);
$("#locale").change(function() { $("#locale").change(function() {
$('#datepicker').datepicker('option', $.extend({showMonthAfterYear: false}, $('#datepicker').datepicker('option', $.datepicker.regional[$(this).val()]);
$.datepicker.regional[$(this).val()]));
}); });
}); });
</script> </script>