Refresh events list when filters at top change or close in the case of datetimepicker
parent
936cefb41a
commit
d06264624a
web/skins/classic/views/js
|
@ -416,10 +416,11 @@ function initPage() {
|
|||
$j('#fieldsTable input, #fieldsTable select').each(function(index) {
|
||||
const el = $j(this);
|
||||
if (el.hasClass('datetimepicker')) {
|
||||
el.datetimepicker({timeFormat: "HH:mm:ss", dateFormat: "yy-mm-dd", maxDate: 0, constrainInput: false});
|
||||
}
|
||||
if (el.hasClass('datepicker')) {
|
||||
el.datepicker({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')) {
|
||||
el.datepicker({dateFormat: "yy-mm-dd", maxDate: 0, constrainInput: false, onClose: filterEvents});
|
||||
} else {
|
||||
el.on('change', filterEvents);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue