zhukov-maxim/lightweight-datepicker — Issue #1: Use input value for default date
Author: golgote
Created: 2012-01-24 17:23:19+00:00
State: open

Hi Maxim,

I have added these lines in the constructor to use the value provided by the input element:

if (this.input.val() != '') {
this.activeDate = this._parseDate(this.input.val());
} else if (this.settings.autoFillToday) {
this.activeDate = new Date;
}

Hope this helps.
Cheers.