Allow empty name with client-side formatting (#454)
This commit is contained in:
parent
5cc64015b9
commit
99a00e5948
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue