diff --git a/client/src/modules/ui.ts b/client/src/modules/ui.ts index 710b469..8b7c77c 100644 --- a/client/src/modules/ui.ts +++ b/client/src/modules/ui.ts @@ -28,10 +28,12 @@ export function changeSiteTitle(): void { export function setEventInfo(inEventInfo: I.EventInfo): void { const inputsWithValue = config.state.inputsWithValue!; + const desc: string = Utils.encodeCP850DecodeUTF8(inEventInfo.desc[0]); + const location: string = Utils.encodeCP850DecodeUTF8(inputsWithValue.venueLocation); - jQuery("#eventInfoDesc span.fl-heading-text")[0].childNodes[0].textContent = inEventInfo.desc[0]; + jQuery("#eventInfoDesc span.fl-heading-text")[0].childNodes[0].textContent = desc; + jQuery("#eventInfoLocation p")[0].childNodes[0].textContent = location; jQuery("#eventInfoDate p")[0].childNodes[0].textContent = inEventInfo.start[0]; - jQuery("#eventInfoLocation p")[0].childNodes[0].textContent = inputsWithValue.venueLocation; jQuery("#eventInfoCapacity p")[0].childNodes[0].textContent = `Verfügbare Plätze: ${inEventInfo.seats_available} von ${inEventInfo.venue_config_capacity[0]}`; }