X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6dcd087abcf718fcaf9aca9283b6b39b9dbbcdcb..258e66299ac45c4dbb951dee0a92194301b31737:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index a9fe4dccf..b53524f25 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; - - $('