Lines 60-70
function clone_entry(node) {
Link Here
|
60 |
|
60 |
|
61 |
// regenerate flatpickr calendars to add event listeners |
61 |
// regenerate flatpickr calendars to add event listeners |
62 |
$(`.flatpickr_wrapper`, clone).remove(); |
62 |
$(`.flatpickr_wrapper`, clone).remove(); |
63 |
var date = $("> .flatpickr", original).val(); |
|
|
64 |
$(".flatpickr", clone).each(function(){ |
63 |
$(".flatpickr", clone).each(function(){ |
65 |
apply_flatpickr(this); |
64 |
apply_flatpickr(this); |
66 |
}); |
65 |
}); |
67 |
$(`.flatpickr_wrapper .flatpickr, #patron_attr_${newId}.flatpickr`, clone).val(date); |
|
|
68 |
|
66 |
|
69 |
return false; |
67 |
return false; |
70 |
} |
68 |
} |
71 |
- |
|
|