diff --git a/web/js/other-ui-stuff.js b/web/js/other-ui-stuff.js index 0d45c80..d431a3a 100644 --- a/web/js/other-ui-stuff.js +++ b/web/js/other-ui-stuff.js @@ -130,14 +130,14 @@ function renderIfIndoor(indoor, location) { function renderLocation(properties) { let beginning = '

Dokładna lokalizacja: '; - let middle = properties['defibrillator:location:pl'] || properties['defibrillator:location'] || 'brak informacji'; + let middle = properties['defibrillator_location_pl'] || properties['defibrillator_location'] || 'brak informacji'; let end = '

'; return beginning + middle + end; } function renderDescription(properties) { let beginning = '

Opis: '; - let middle = properties['description:pl'] || properties.description || 'brak informacji'; + let middle = properties['description_pl'] || properties.description || 'brak informacji'; let end = '

'; return beginning + middle + end; } @@ -161,9 +161,9 @@ function renderAccessibleTime(openingHours) { } function renderNotes(properties) { - if (properties.note || properties['note:pl']) { + if (properties.note || properties['note_pl']) { let beginning = '

Uwagi: '; - let middle = properties['note:pl'] || properties.note || 'brak uwag'; + let middle = properties['note_pl'] || properties.note || 'brak uwag'; let end = '

'; return beginning + middle + end; } else {