As described in issue #151 when a user changes the viewed month the picked date is also changed, which on environments where a month change triggers an AJAX call could cause severe problems.
This PR fixes that, by storing another variable ('shownDate') into $picker.data array, and using the 'keepPickedDate' option when drawing the calendar after month-changing trigger is activated.
As described in issue #151 when a user changes the viewed month the picked date is also changed, which on environments where a month change triggers an AJAX call could cause severe problems. This PR fixes that, by storing another variable ('shownDate') into $picker.data array, and using the 'keepPickedDate' option when drawing the calendar after month-changing trigger is activated.