|
Lines 70-75
Link Here
|
| 70 |
} |
70 |
} |
| 71 |
}); |
71 |
}); |
| 72 |
}, |
72 |
}, |
|
|
73 |
onChange: function( selectedDates, dateText, instance) { |
| 74 |
let parsedDate = flatpickr.parseDate(dateText, instance.config.dateFormat); |
| 75 |
if ( !parsedDate.getHours() ) { |
| 76 |
instance.setDate(selectedDates[0].setHours(23, 59, 0, 0)); |
| 77 |
} |
| 78 |
}, |
| 73 |
onClose: function( selectedDates, dateText, instance) { |
79 |
onClose: function( selectedDates, dateText, instance) { |
| 74 |
validate_date( dateText, instance ); |
80 |
validate_date( dateText, instance ); |
| 75 |
var thisInput = instance.input; |
81 |
var thisInput = instance.input; |
| 76 |
- |
|
|