Permalink
Browse files

Datepicker: fix populate alternate field demo

  • Loading branch information...
1 parent c3a2b1b commit 37368080b49b8756d5a53e5fca47b3bf71e27e7c @fnagel fnagel committed Apr 26, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 demos/datepicker/alt-field.html
View
4 demos/datepicker/alt-field.html
@@ -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.