jonthornton/Datepair.js

about defaultDateDelta?

Closed this issue · 2 comments

defaultDateDelta
Fill in the second date value with the specified range when the users selects the first date. Value is in days. Set this to null to disable automatically setting the second date.
var basicExampleEl = document.getElementById('basic-date');
var datepair = new Datepair(basicExampleEl);
datepair.defaultDateDelta = null;
datepair.defaultTimeDelta = null;

it is no effect about it.

var datepair = new Datepair(basicExampleEl, {
            'defaultDateDelta': null,      
            'defaultTimeDelta': null   
        });

it is no effect

Sorry, I'm not able to reproduce this. Can you post a jsFiddle that demonstrates the problem?