Event class bugfix (#3218)

Hello,

Bugfix. :-) The "break" line did not allow the "eventClass" option to
execute.
This commit is contained in:
Teddy 2023-10-03 12:24:50 +02:00 committed by GitHub
parent 66b29ec26e
commit b067711ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,8 @@ _This release is scheduled to be released on 2024-01-01._
### Fixed ### Fixed
- Fix the option eventClass on customEvents.
## [2.25.0] - 2023-10-01 ## [2.25.0] - 2023-10-01
Thanks to: @bugsounet, @dgoth, @dependabot, @kenzal, @Knapoc, @KristjanESPERANTO, @martingron, @NolanKingdon, @Paranoid93, @TeddyStarinvest and @Ybbet. Thanks to: @bugsounet, @dgoth, @dependabot, @kenzal, @Knapoc, @KristjanESPERANTO, @martingron, @NolanKingdon, @Paranoid93, @TeddyStarinvest and @Ybbet.

View file

@ -335,7 +335,6 @@ Module.register("calendar", {
if (this.config.displaySymbol && this.config.coloredSymbol) { if (this.config.displaySymbol && this.config.coloredSymbol) {
symbolWrapper.style.cssText = `color:${this.config.customEvents[ev].color}`; symbolWrapper.style.cssText = `color:${this.config.customEvents[ev].color}`;
} }
break;
} }
if (typeof this.config.customEvents[ev].eventClass !== "undefined" && this.config.customEvents[ev].eventClass !== "") { if (typeof this.config.customEvents[ev].eventClass !== "undefined" && this.config.customEvents[ev].eventClass !== "") {
eventWrapper.className += ` ${this.config.customEvents[ev].eventClass}`; eventWrapper.className += ` ${this.config.customEvents[ev].eventClass}`;