Allow empty name with client-side formatting (#454)

This commit is contained in:
Norbert Renner 2022-05-24 22:00:59 +02:00
parent 5cc64015b9
commit 99a00e5948

View file

@ -83,7 +83,8 @@ BR.PoiMarkers = L.Control.extend({
var self = this; var self = this;
bootbox.prompt({ bootbox.prompt({
title: i18next.t('map.enter-poi-name'), title: i18next.t('map.enter-poi-name'),
required: true, // allow empty name with client-side formatting
required: !BR.Browser.download,
callback: function (result) { callback: function (result) {
if (result !== null) { if (result !== null) {
self.addMarker(e.latlng, result); self.addMarker(e.latlng, result);