fixed Umlauts in event title and location (untested), npm run dev

This commit is contained in:
zino
2021-05-28 16:58:50 +02:00
parent e5dbfd16cd
commit c4596975e5
3 changed files with 8 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -28,10 +28,12 @@ export function changeSiteTitle(): void {
export function setEventInfo(inEventInfo: I.EventInfo): void { export function setEventInfo(inEventInfo: I.EventInfo): void {
const inputsWithValue = config.state.inputsWithValue!; 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("#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]}`; jQuery("#eventInfoCapacity p")[0].childNodes[0].textContent = `Verfügbare Plätze: ${inEventInfo.seats_available} von ${inEventInfo.venue_config_capacity[0]}`;
} }