feat: support intervals for rrules
This commit is contained in:
parent
7674dc956a
commit
15f203426e
2 changed files with 7 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta name='viewport' content='width=device-width,initial-scale=1'>
|
||||
|
||||
<title>Club Réseau</title>
|
||||
<title>Calendrier du Club Réseau</title>
|
||||
|
||||
<link rel='icon' type='image/png' href='/favicon.png'>
|
||||
<link rel='stylesheet' href='/global.css'>
|
||||
|
|
|
@ -61,12 +61,16 @@ function fcEventFromjCalEvent(cal) {
|
|||
}
|
||||
|
||||
if (evt.rrule) {
|
||||
const { freq, byday } = evt.rrule;
|
||||
const { freq, byday, interval } = evt.rrule;
|
||||
fcEvent.rrule = {
|
||||
freq,
|
||||
byweekday: byday,
|
||||
dtstart: evt.dtstart,
|
||||
};
|
||||
|
||||
if (interval) {
|
||||
fcEvent.rrule.interval = interval;
|
||||
}
|
||||
}
|
||||
|
||||
return fcEvent;
|
||||
|
|
Loading…
Reference in a new issue