Datepicker: Fix populate alternate field demo

This commit is contained in:
Felix Nagel 2014-04-26 15:07:32 +02:00 committed by Scott González
parent ab2cb90240
commit 6324828ba0

View File

@ -18,8 +18,8 @@
$(function() {
$( "#datepicker" ).datepicker({
select: function( event, ui ) {
var date = Globalize.parseDate( ui.date );
$( "#alternate" ).val( Globalize.format( date, "dddd, d MMMM, yyyy" ) );
var date = Globalize.parseDate( ui.date, { date: "short" } );
$( "#alternate" ).val( Globalize.format( date, { date: "long" } ) );
}
});
});