mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-20 06:10:59 +00:00
fixed multiple date picker caused by unscoped selector, thanks to Matt Rosenquist. Fixes #972
This commit is contained in:
parent
0691c2284b
commit
37d22dd105
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }) );
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue