Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions experiments/ui-datepicker/jquery.ui.datepicker.mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
var dp = this;

//call cached datepicker plugin
prevDp.call( this, options );
prevDp.apply( this, arguments );

//extend with some dom manipulation to update the markup for jQM
//call immediately
Expand Down Expand Up @@ -49,7 +49,7 @@
//bind to pagecreate to automatically enhance date inputs
$( ".ui-page" ).live( "pagecreate", function(){
$( "input[type='date'], input:jqmData(type='date')" ).each(function(){
$(this).after( $( "<div />" ).datepicker({ altField: "#" + $(this).attr( "id" ), showOtherMonths: true }) );
$(this).after( $( "<div />" ).datepicker({ altField: "#" + $(this).attr( "id" ), showOtherMonths: true, defaultDate: $(this).val() }) );
});
});
})( jQuery );
})( jQuery );