X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6edf63388591740a2e2fd69fa34e02418450a463..ca07fe853cd743f6d17ebcd02b6e8794e548e2a4:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 1f13bf609..d4c829532 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); @@ -25,16 +25,15 @@ L.OSM.share = function (options) { .attr('class', 'sidebar_heading') .appendTo($ui) .append( - $('') + $('') .text(I18n.t('javascripts.close')) - .attr('class', 'sidebar_close') - .attr('href', '#') + .attr('class', 'icon close') .bind('click', toggle)) .append( $('

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