Refresh events list when filters at top change or close in the case of datetimepicker

pull/3787/head
Isaac Connor 2023-11-17 12:06:03 -05:00
parent 936cefb41a
commit d06264624a
1 changed files with 5 additions and 4 deletions

View File

@ -416,10 +416,11 @@ function initPage() {
$j('#fieldsTable input, #fieldsTable select').each(function(index) { $j('#fieldsTable input, #fieldsTable select').each(function(index) {
const el = $j(this); const el = $j(this);
if (el.hasClass('datetimepicker')) { if (el.hasClass('datetimepicker')) {
el.datetimepicker({timeFormat: "HH:mm:ss", dateFormat: "yy-mm-dd", maxDate: 0, constrainInput: false}); el.datetimepicker({timeFormat: "HH:mm:ss", dateFormat: "yy-mm-dd", maxDate: 0, constrainInput: false, onClose: filterEvents});
} } else if (el.hasClass('datepicker')) {
if (el.hasClass('datepicker')) { el.datepicker({dateFormat: "yy-mm-dd", maxDate: 0, constrainInput: false, onClose: filterEvents});
el.datepicker({dateFormat: "yy-mm-dd", maxDate: 0, constrainInput: false}); } else {
el.on('change', filterEvents);
} }
}); });