set flatpickr to 1 minute increments (#5974)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
862e2ee80b
commit
8e6cc14981
|
@ -8280,8 +8280,8 @@
|
|||
showShareDeviceValidate();
|
||||
var tomorrow = new Date();
|
||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, minDate: new Date(), defaultDate: [ new Date(), tomorrow ] });
|
||||
var startTime = flatpickr('#d2timeStartSelector', { enableTime: true, minDate: new Date(), defaultDate: new Date() });
|
||||
var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, minDate: new Date(), defaultDate: [ new Date(), tomorrow ], minuteIncrement: 1 });
|
||||
var startTime = flatpickr('#d2timeStartSelector', { enableTime: true, minDate: new Date(), defaultDate: new Date(), minuteIncrement: 1 });
|
||||
xxdialogTag = { range: rangeTime, start: startTime };
|
||||
}
|
||||
|
||||
|
@ -17237,7 +17237,7 @@
|
|||
|
||||
var lastWeek = new Date();
|
||||
lastWeek.setDate(lastWeek.getDate() - 7);
|
||||
var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, maxDate: new Date(), defaultDate: [ lastWeek, new Date() ] });
|
||||
var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, maxDate: new Date(), defaultDate: [ lastWeek, new Date() ], minuteIncrement: 1 });
|
||||
xxdialogTag = rangeTime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue