Skip to content
Permalink
Browse files
Datepicker: fix populate alternate field demo
  • Loading branch information
fnagel committed Apr 26, 2014
1 parent c3a2b1b commit 37368080b49b8756d5a53e5fca47b3bf71e27e7c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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" } ) );
}
});
});

0 comments on commit 3736808

Please sign in to comment.