No, I'm sorry wtetsu, but your method is wrong. When I replace the call with apply it crashes and the days from other months disappear. The actual solution is very simple.
datepicker() accepts TWO arguments to set the date:
- .datepicker( "setDate"
, date
)
In the datepicker mobile source code, only ONE argument was able to be passed:
- $.fn.datepicker = function( options){
var dp = this;
//call cached datepicker plugin
prevDp.call( this, options);
This meant that when tried to set the date, only "setDate" was being passed to the original function, not the date.
The solution:
- $.fn.datepicker = function( option1 ,option2){
var dp = this;
//call cached datepicker plugin
prevDp.call( this, option1, option2 );