From b565daf827b2250439833051ad47b774713be9d8 Mon Sep 17 00:00:00 2001 From: n1rwana Date: Fri, 4 Aug 2023 12:21:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=B0=D0=B7?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B3=D0=B5=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D1=87=D0=BA=D0=B8=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/static/js/al_wall.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 301342f8..0c38c60a 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -269,7 +269,7 @@ async function initGeo(tid) { let marker = { lat: currentMarker._latlng.lat, lng: currentMarker._latlng.lng, - name: currentMarker._popup._content + name: $(`#geo-name-input-${tid}`).val() ?? currentMarker._popup._content }; $(`#post-buttons${tid} #geo`).val(JSON.stringify(marker)); $(`#post-buttons${tid} .post-has-geo`).text(`${tr("geotag")}: ${marker.name}`); @@ -302,7 +302,12 @@ async function initGeo(tid) { markerLayers.clearLayers(); currentMarker = L.marker([lat, lng]).addTo(map); - currentMarker.bindPopup(response?.name ?? response?.display_name).openPopup(); + + let name = response?.name ?? response?.display_name ?? tr("geotag"); + let content = `${name}`; + content += ``; + + currentMarker.bindPopup(content).openPopup(); markerLayers.addLayer(currentMarker); } })