X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a776a574cd6a711c0b4bf854701646c37c391c..10c9ca81c788c5aa3cd7a66d9cdbaedc14def1bc:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 7449fb6d7..f085bc0e6 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -16,12 +16,7 @@ L.Control.Share = L.Control.extend({ link.href = '#'; link.title = this.options.title; - this._uiPane = L.DomUtil.create('div', 'leaflet-map-ui', map._container); - - L.DomEvent - .on(this._uiPane, 'click', L.DomEvent.stopPropagation) - .on(this._uiPane, 'click', L.DomEvent.preventDefault) - .on(this._uiPane, 'dblclick', L.DomEvent.preventDefault); + this._uiPane = this.options.uiPane; var h2 = L.DomUtil.create('h2', '', this._uiPane); h2.innerHTML = I18n.t('javascripts.share.title');