]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.share.js
Merge pull request #3935 from Hufkratzer/rename-horse-riding-label
[rails.git] / app / assets / javascripts / leaflet.share.js
index 2f422e1f93cf0b4f4e84a6dde912fee5dd3fd8bb..b9c48f15a8a3227208da6466fb247a54cf19b547 100644 (file)
@@ -35,7 +35,7 @@ L.OSM.share = function (options) {
               .bind("change", toggleMarker))
           .append(I18n.t("javascripts.share.include_marker")));
 
               .bind("change", toggleMarker))
           .append(I18n.t("javascripts.share.include_marker")));
 
-    $("<div class='share-tabs btn-group btn-group-sm mb-2'>")
+    $("<div class='btn-group btn-group-sm mb-2'>")
       .appendTo($form)
       .append($("<a class='btn btn-primary'>")
         .addClass("active")
       .appendTo($form)
       .append($("<a class='btn btn-primary'>")
         .addClass("active")
@@ -53,7 +53,7 @@ L.OSM.share = function (options) {
       .on("click", "a", function (e) {
         e.preventDefault();
         var id = "#" + $(this).attr("for");
       .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")
           .removeClass("active");
         $(this).addClass("active");
         $linkSection.find(".share-tab")
@@ -91,8 +91,7 @@ L.OSM.share = function (options) {
       .append(
         $("<p>")
           .attr("class", "text-muted")
       .append(
         $("<p>")
           .attr("class", "text-muted")
-          .text(I18n.t("javascripts.share.paste_html"))
-          .appendTo($linkSection));
+          .text(I18n.t("javascripts.share.paste_html")));
 
     // Geo URI
 
 
     // Geo URI