MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / isFiltered

Function isFiltered

codebase/sources/dhtmlxscheduler.js:17739–17742  ·  view source on GitHub ↗
(ii, currentDay, options)

Source from the content-addressed store, hash-verified

17737 }
17738 }
17739 function isFiltered(ii, currentDay, options) {
17740 var bymonth = options.bymonth, byweekno = options.byweekno, byweekday = options.byweekday, byeaster = options.byeaster, bymonthday = options.bymonthday, bynmonthday = options.bynmonthday, byyearday = options.byyearday;
17741 return notEmpty(bymonth) && !includes(bymonth, ii.mmask[currentDay]) || notEmpty(byweekno) && !ii.wnomask[currentDay] || notEmpty(byweekday) && !includes(byweekday, ii.wdaymask[currentDay]) || notEmpty(ii.nwdaymask) && !ii.nwdaymask[currentDay] || byeaster !== null && !includes(ii.eastermask, currentDay) || (notEmpty(bymonthday) || notEmpty(bynmonthday)) && !includes(bymonthday, ii.mdaymask[currentDay]) && !includes(bynmonthday, ii.nmdaymask[currentDay]) || notEmpty(byyearday) && (currentDay < ii.yearlen && !includes(byyearday, currentDay + 1) && !includes(byyearday, -ii.yearlen + currentDay) || currentDay >= ii.yearlen && !includes(byyearday, currentDay + 1 - ii.yearlen) && !includes(byyearday, -ii.nextyearlen + currentDay - ii.yearlen));
17742 }
17743 function rezoneIfNeeded(date, options) {
17744 return new DateWithZone(date, options.tzid).rezonedDate();
17745 }

Callers 1

removeFilteredDaysFunction · 0.70

Calls 2

notEmptyFunction · 0.70
includesFunction · 0.70

Tested by

no test coverage detected