Lines 72-78
Link Here
|
72 |
</li> |
72 |
</li> |
73 |
<li class="dateinsert"> |
73 |
<li class="dateinsert"> |
74 |
<strong>To date: </strong> |
74 |
<strong>To date: </strong> |
75 |
<input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange | html %]" /> |
75 |
<input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange | html %]" class="flatpickr" /> |
76 |
</li> |
76 |
</li> |
77 |
<li> |
77 |
<li> |
78 |
<label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /> |
78 |
<label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /> |
Lines 170-176
Link Here
|
170 |
</li> |
170 |
</li> |
171 |
<li class="dateinsert"> |
171 |
<li class="dateinsert"> |
172 |
<strong>To date: </strong> |
172 |
<strong>To date: </strong> |
173 |
<input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange | html %]" /> |
173 |
<input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange | html %]" class="flatpickr" /> |
174 |
</li> |
174 |
</li> |
175 |
<li> |
175 |
<li> |
176 |
<label for="title">Title: </label> |
176 |
<label for="title">Title: </label> |
Lines 602-618
Link Here
|
602 |
$(this).parent().find(".hint").toggle(); return false; |
602 |
$(this).parent().find(".hint").toggle(); return false; |
603 |
}); |
603 |
}); |
604 |
|
604 |
|
605 |
var dateofrange = $("#dateofrange").flatpickr(); |
605 |
const dateofrange = document.querySelector("#dateofrange")._flatpickr; |
606 |
|
606 |
const datecancelrange = document.querySelector("#datecancelrange")._flatpickr; |
607 |
var datecancelrange = $("#datecancelrange").flatpickr(); |
|
|
608 |
|
607 |
|
609 |
$("#dateofrange").each(function () { this.value = "" }); |
608 |
$("#dateofrange").each(function () { this.value = "" }); |
610 |
$("#datecancelrange").each(function () { this.value = "" }); |
609 |
$("#datecancelrange").each(function () { this.value = "" }); |
611 |
|
610 |
|
612 |
var maincalendar = $("#calendar-anchor").flatpickr({ |
611 |
var maincalendar = $("#calendar-anchor").flatpickr({ |
613 |
inline: true, |
612 |
inline: true, |
614 |
onReady: function(){ |
613 |
onReady: function( selectedDates, dateStr, instance ){ |
615 |
return; |
614 |
// We do not want to display the 'close' icon in this case |
|
|
615 |
$(instance.input).siblings('.flatpickr-input').hide(); |
616 |
}, |
616 |
}, |
617 |
onDayCreate: function( dObj, dStr, fp, dayElem ){ |
617 |
onDayCreate: function( dObj, dStr, fp, dayElem ){ |
618 |
/* for each day on the calendar, get the |
618 |
/* for each day on the calendar, get the |