moved some selectors over to :jqmData()

This commit is contained in:
scottjehl 2011-03-26 10:15:27 -04:00
parent 2add396bb2
commit 491d4a6873

View file

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