X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6dcd087abcf718fcaf9aca9283b6b39b9dbbcdcb..3ba036045bc43031475eb29ca0663d33c80e1b32:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index a9fe4dccf..01fc0c80a 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -10,10 +10,10 @@ L.OSM.share = function (options) { var $container = $('
') .attr('class', 'control-share'); - $('') + var button = $('') .attr('class', 'control-button') .attr('href', '#') - .attr('title', 'Share') + .attr('title', I18n.t('javascripts.share.title')) .html('') .on('click', toggle) .appendTo($container); @@ -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; - - $('