X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79c524832ef027a7d7e0ae62dc198e449aec150b..b8da7922ec4194e61a1eebb43be787f8b55d1647:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 2f422e1f9..b9c48f15a 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -35,7 +35,7 @@ L.OSM.share = function (options) { .bind("change", toggleMarker)) .append(I18n.t("javascripts.share.include_marker"))); - $("
") + $("
") .appendTo($form) .append($("") .addClass("active") @@ -53,7 +53,7 @@ L.OSM.share = function (options) { .on("click", "a", function (e) { e.preventDefault(); var id = "#" + $(this).attr("for"); - $linkSection.find(".share-tabs a") + $(this).siblings("a") .removeClass("active"); $(this).addClass("active"); $linkSection.find(".share-tab") @@ -91,8 +91,7 @@ L.OSM.share = function (options) { .append( $("

") .attr("class", "text-muted") - .text(I18n.t("javascripts.share.paste_html")) - .appendTo($linkSection)); + .text(I18n.t("javascripts.share.paste_html"))); // Geo URI