]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Work on layers UI
[rails.git] / app / assets / javascripts / application.js
index 808f30e925c626b205acf5c943e898402f0def97..c9eddfb9cc6c2021fa132946c3427c5f58da1da8 100644 (file)
@@ -5,6 +5,7 @@
 //= require augment
 //= require leaflet
 //= require leaflet.osm
+//= require leaflet.extend
 //= require leaflet.locationfilter
 //= require i18n/translations
 //= require oauth
@@ -78,9 +79,7 @@ function updatelinks(loc, zoom, layers, bounds, object) {
     var minzoom = $(link).data("minzoom");
     if (minzoom) {
         var name = link.id.replace(/anchor$/, "");
-
         $(link).off("click.minzoom");
-
         if (zoom >= minzoom) {
           $(link).attr("title", I18n.t("javascripts.site." + name + "_tooltip"))
               .removeClass("disabled");