X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79c524832ef027a7d7e0ae62dc198e449aec150b..7848643990f11e079b73310936fc1d2a85cffe83:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 2f422e1f9..7b1c995c2 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") @@ -66,7 +66,6 @@ L.OSM.share = function (options) { $("
") .attr("class", "share-tab") - .css("display", "block") .appendTo($form) .append($("") .attr("id", "long_input") @@ -75,6 +74,7 @@ L.OSM.share = function (options) { $("
") .attr("class", "share-tab") + .hide() .appendTo($form) .append($("") .attr("id", "short_input") @@ -83,6 +83,7 @@ L.OSM.share = function (options) { $("
") .attr("class", "share-tab") + .hide() .appendTo($form) .append( $("