X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/669393a6cba616672f689124883e2612cdd0adc3..2fa422578448314fb6fad888b5c47cf994cb0b8c:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index b736b41c1..b5f45e01d 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -10,7 +10,7 @@ L.OSM.share = function (options) { var $container = $('
') .attr('class', 'control-share'); - $('') + var button = $('') .attr('class', 'control-button') .attr('href', '#') .attr('title', 'Share') @@ -34,7 +34,7 @@ L.OSM.share = function (options) { $('

') .text(I18n.t('javascripts.share.title'))); - // Link + // Link / Embed var $linkSection = $('
') .attr('class', 'section share-link') @@ -61,56 +61,65 @@ L.OSM.share = function (options) { .bind('change', toggleMarker)) .append(I18n.t('javascripts.share.include_marker'))); - var $shortLink, $longLink; - - $('