Closed michael-wirth closed 10 years ago
The Time-only example causes an exeception the 2nd time the the starttime is changeing.
The problem is that the script will check for the value of the endDateInput which is null, as I only have start- and endtime.
I guess as a workaround I can use a hidden field to simulate the date-start and -end, but it would nice if it would work without.
datepari.js, line:214
if (this.endDateInput.value && this.dateDelta + this.timeDelta < _ONE_DAY && (endTime.getTime() - startTime.getTime()) * this.timeDelta < 0) { var offset = (endTime < startTime) ? _ONE_DAY : -1 * _ONE_DAY; var endDate = this.settings.parseDate(this.endDateInput); this.settings.updateDate(this.endDateInput, new Date(endDate.getTime() + offset));
Thanks for reporting the glitch!
The Time-only example causes an exeception the 2nd time the the starttime is changeing.
The problem is that the script will check for the value of the endDateInput which is null, as I only have start- and endtime.
I guess as a workaround I can use a hidden field to simulate the date-start and -end, but it would nice if it would work without.
datepari.js, line:214