Merge pull request #1548 from edelabar/patch-1.

Fix for calendar widget creating multiple calendars in multi-page HTML
This commit is contained in:
Scott Jehl 2011-05-02 08:35:26 -07:00
commit fa152fa977

View file

@ -48,7 +48,7 @@
//bind to pagecreate to automatically enhance date inputs
$( ".ui-page" ).live( "pagecreate", function(){
$( "input[type='date'], input:jqmData(type='date')" ).each(function(){
$( "input[type='date'], input:jqmData(type='date')", this ).each(function(){
$(this).after( $( "<div />" ).datepicker({ altField: "#" + $(this).attr( "id" ), showOtherMonths: true }) );
});
});