()
| 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]; |
no test coverage detected