Skip to content
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
5 changes: 4 additions & 1 deletion jquery.mobile.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
$(object.settings.altField)
.date( "addMobileStyle" );
}
object.input.trigger("change");
},0);
}, // Define a callback function when a date is selected
onChangeMonthYear: function(month,year,object){
Expand All @@ -57,7 +58,7 @@
var self = this;
setTimeout( function(){
$(element)
.data("mobileDate").addMobileStyle();
.date( "addMobileStyle" );
},0);
},// Define a callback function when the month or year is changed
numberOfMonths: 1, // Number of months to show at a time
Expand All @@ -75,6 +76,8 @@
_create:function(){
var calendar, interval,
that = this;

this.options.dateFormat = this.element.data('format');
if( this.options.inline ){
this.options.altField = this.element;
calendar = $("<div>").datepicker(this.options);
Expand Down