X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b36df9286a03c0dd034ce0829eb69a9b66f79ea2..22dc13d6edb17cbdd4b73aabad340dcc8ef41999:/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 f6ab47cf2..b9c48f15a 100644
--- a/app/assets/javascripts/leaflet.share.js
+++ b/app/assets/javascripts/leaflet.share.js
@@ -35,26 +35,25 @@ L.OSM.share = function (options) {
.bind("change", toggleMarker))
.append(I18n.t("javascripts.share.include_marker")));
- $("
")
- .attr("class", "share-tabs")
+ $("
")
.appendTo($form)
- .append($("
")
- .attr("class", "active")
+ .append($("")
+ .addClass("active")
.attr("for", "long_input")
.attr("id", "long_link")
.text(I18n.t("javascripts.share.long_link")))
- .append($("")
+ .append($("")
.attr("for", "short_input")
.attr("id", "short_link")
.text(I18n.t("javascripts.share.short_link")))
- .append($("")
+ .append($("")
.attr("for", "embed_html")
.attr("href", "#")
.text(I18n.t("javascripts.share.embed")))
.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")
@@ -92,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