X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a6ac56c5e510395d160cdb7ccc7a88d87403e687..b1dae2e7988d5e808b1716eb331d359575e829e5:/app/assets/javascripts/leaflet.share.js?ds=sidebyside diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 6653a5b92..b808bc435 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -16,13 +16,38 @@ L.OSM.share = function (options) { var $ui = $('
') .attr('class', 'share-ui'); - $('

') - .text(I18n.t('javascripts.share.title')) - .appendTo($ui); + $('
') + .attr('class', 'sidebar_heading') + .appendTo($ui) + .append( + $('') + .text(I18n.t('javascripts.close')) + .attr('class', 'sidebar_close') + .attr('href', '#') + .bind('click', toggle)) + .append( + $('

') + .text(I18n.t('javascripts.share.title'))); - var $input = $('') + var $linkSection = $('
') + .attr('class', 'section share-link') .appendTo($ui); + $('

') + .text(I18n.t('javascripts.share.link')) + .appendTo($linkSection); + + var $shortLink, $longLink; + + $('