Hi,
your filter returns ‘true’ if the event meets the first condition, without the second checking one in that case
if (filters[event.filt] || event.filt==scheduler.undefined) {
return true;
}
So it works as ‘OR’ - event will be shown if it pass the first or the second checking
If you want it to work as ‘AND’ - event will be shown if it pass both the first and the second checking, you need to implement it accordingly,
the simplest way would be just invert checkings;[code]scheduler.filter_month = scheduler.filter_day = scheduler.filter_week = function(id, event) {
if (!(filters[event.filt] || event.filt==scheduler.undefined)) {
return false;
}
if (!(filters[event.tt] || event.tt==scheduler.undefined)) {
return false;
}
return true;
};[/code]
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan