From b067711edea3864582d2bb5a325e050a7c6aa59d Mon Sep 17 00:00:00 2001 From: Teddy Date: Tue, 3 Oct 2023 12:24:50 +0200 Subject: [PATCH] Event class bugfix (#3218) Hello, Bugfix. :-) The "break" line did not allow the "eventClass" option to execute. --- CHANGELOG.md | 2 ++ modules/default/calendar/calendar.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd7a6dc248..049e6c803c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ _This release is scheduled to be released on 2024-01-01._ ### Fixed +- Fix the option eventClass on customEvents. + ## [2.25.0] - 2023-10-01 Thanks to: @bugsounet, @dgoth, @dependabot, @kenzal, @Knapoc, @KristjanESPERANTO, @martingron, @NolanKingdon, @Paranoid93, @TeddyStarinvest and @Ybbet. diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 681177d514..faff12e539 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -335,7 +335,6 @@ Module.register("calendar", { if (this.config.displaySymbol && this.config.coloredSymbol) { symbolWrapper.style.cssText = `color:${this.config.customEvents[ev].color}`; } - break; } if (typeof this.config.customEvents[ev].eventClass !== "undefined" && this.config.customEvents[ev].eventClass !== "") { eventWrapper.className += ` ${this.config.customEvents[ev].eventClass}`;