diff --git a/modules/default/calendar/README.md b/modules/default/calendar/README.md index 81981243..713b7940 100644 --- a/modules/default/calendar/README.md +++ b/modules/default/calendar/README.md @@ -44,7 +44,7 @@ The following properties can be configured: | `urgency` | When using a timeFormat of `absolute`, the `urgency` setting allows you to display events within a specific time frame as `relative`. This allows events within a certain time frame to be displayed as relative (in xx days) while others are displayed as absolute dates

**Possible values:** a positive integer representing the number of days for which you want a relative date, for example `7` (for 7 days)

**Default value:** `7` | `broadcastEvents` | If this property is set to true, the calendar will broadcast all the events to all other modules with the notification message: `CALENDAR_EVENTS`. The event objects are stored in an array and contain the following fields: `title`, `startDate`, `endDate`, `fullDayEvent`, `location` and `geo`.

**Possible values:** `true`, `false`

**Default value:** `true` | `hidePrivate` | Hides private calendar events.

**Possible values:** `true` or `false`
**Default value:** `false` -| `excludedEvents` | An array of words / phrases from event titles that will be excluded from being shown.

**Example:** `['Birthday', 'Hide This Event']`
**Default value:** `[""]` +| `excludedEvents` | An array of words / phrases from event titles that will be excluded from being shown.

**Example:** `['Birthday', 'Hide This Event']`
**Default value:** `[]` ### Calendar configuration diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 7c075d1c..f13345fb 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -39,9 +39,7 @@ Module.register("calendar", { "'s birthday": "" }, broadcastEvents: true, - excludedEvents: [ - "" - ] + excludedEvents: [] }, // Define required scripts. @@ -135,7 +133,7 @@ Module.register("calendar", { if (excluded) { continue; } - + var eventWrapper = document.createElement("tr"); if (this.config.colored) {