jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
359 stars 85 forks source link

defaultTimeDelta: null still adds 2nd time #26

Closed KrunchMuffin closed 9 years ago

KrunchMuffin commented 9 years ago

I have $('#EventTimeContainer').datepair({defaultTimeDelta: null}); but the 2nd timepicker is still getting set to the same value as the start time.

Also, just noticed that the the date goes back one day as well.

I added anchor:null to see if that would stop the date from changing, but I get a js error. TypeError: d is null line 144 of jquery timepicker bundle if (null !== this.dateDelta && this.dateDelta + this.timeDelta <= g && (d.getTime() - b.getTime()) * this.timeDelta <= 0) {

jonthornton commented 9 years ago

Thanks for reporting!