X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e8f2af833ac73f953cb65d06b8861c0f9844e852..b4256ae6a389cad58a8dee903269f47d2e43a194:/app/assets/javascripts/leaflet.layers.js?ds=inline
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 = $("