fixed multiple date picker caused by unscoped selector, thanks to Matt Rosenquist. Fixes #972

This commit is contained in:
John Bender 2011-02-24 23:03:55 -08:00
parent 0691c2284b
commit 37d22dd105

View file

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