mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
added possibility to pass array to selectDate
This commit is contained in:
parent
fa50bb70f1
commit
1adc70d3ff
7
dist/js/datepicker.js
vendored
7
dist/js/datepicker.js
vendored
@ -428,6 +428,13 @@
|
|||||||
len = selectedDates.length,
|
len = selectedDates.length,
|
||||||
newDate = '';
|
newDate = '';
|
||||||
|
|
||||||
|
if (Array.isArray(date)) {
|
||||||
|
date.forEach(function (d) {
|
||||||
|
_this.selectDate(d)
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(date instanceof Date)) return;
|
if (!(date instanceof Date)) return;
|
||||||
|
|
||||||
this.lastSelectedDate = date;
|
this.lastSelectedDate = date;
|
||||||
|
|||||||
4
dist/js/datepicker.min.js
vendored
4
dist/js/datepicker.min.js
vendored
File diff suppressed because one or more lines are too long
@ -428,6 +428,13 @@
|
|||||||
len = selectedDates.length,
|
len = selectedDates.length,
|
||||||
newDate = '';
|
newDate = '';
|
||||||
|
|
||||||
|
if (Array.isArray(date)) {
|
||||||
|
date.forEach(function (d) {
|
||||||
|
_this.selectDate(d)
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(date instanceof Date)) return;
|
if (!(date instanceof Date)) return;
|
||||||
|
|
||||||
this.lastSelectedDate = date;
|
this.lastSelectedDate = date;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user