X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e8f2af833ac73f953cb65d06b8861c0f9844e852..9241d9810d39607acaef19bed6f69d8f3dd38220:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index f372b86cf..020876c47 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -100,11 +100,10 @@ L.OSM.layers = function (options) { var item = $("
  • ") .appendTo(overlays); - var tooltip; if (name === "notes" || name === "data") { - item.attr("title", I18n.t("javascripts.site.map_" + name + "_zoom_in_tooltip")); - tooltip = new bootstrap.Tooltip(item[0]); - tooltip.disable(); + item + .attr("title", I18n.t("javascripts.site.map_" + name + "_zoom_in_tooltip")) + .tooltip("disable"); } var label = $("