X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79c524832ef027a7d7e0ae62dc198e449aec150b..c376962c9cc08d7787c28e447705c19242c0d638:/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 2f422e1f9..73ca64f63 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( $("