From 99a00e59484690298273fd2eb4ee67bacd9b9843 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Tue, 24 May 2022 22:00:59 +0200 Subject: [PATCH] Allow empty name with client-side formatting (#454) --- js/plugin/POIMarkers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/plugin/POIMarkers.js b/js/plugin/POIMarkers.js index 612e609..42f2409 100644 --- a/js/plugin/POIMarkers.js +++ b/js/plugin/POIMarkers.js @@ -83,7 +83,8 @@ BR.PoiMarkers = L.Control.extend({ var self = this; bootbox.prompt({ title: i18next.t('map.enter-poi-name'), - required: true, + // allow empty name with client-side formatting + required: !BR.Browser.download, callback: function (result) { if (result !== null) { self.addMarker(e.latlng, result);