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

Function getRecurringSection

codebase/sources/dhtmlxscheduler.js:20222–20231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20220 return timeControl;
20221 }
20222 function getRecurringSection() {
20223 var recurringSection = scheduler2.formSection("recurring");
20224 if (!recurringSection) {
20225 recurringSection = getFirstSectionOfType("recurring");
20226 }
20227 if (!recurringSection) {
20228 throw new Error(["Can't locate the Recurring form section.", "Make sure that you have the recurring control on the lightbox configuration https://docs.dhtmlx.com/scheduler/recurring_events.html#recurringlightbox ", 'and that the recurring control has name "recurring":', "", "scheduler.config.lightbox.sections = [", ' {name:"recurring", ... }', "];"].join("\n"));
20229 }
20230 return recurringSection;
20231 }
20232 function getFirstSectionOfType(type) {
20233 for (var i = 0; i < scheduler2.config.lightbox.sections.length; i++) {
20234 var section = scheduler2.config.lightbox.sections[i];

Callers 1

recurring_legacyFunction · 0.70

Calls 2

getFirstSectionOfTypeFunction · 0.70
formSectionMethod · 0.65

Tested by

no test coverage detected