Refresh events list when filters at top change or close in the case of datetimepicker
parent
936cefb41a
commit
d06264624a
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue