]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.query.js
Use Activerecord '#or' method for queries
[rails.git] / app / assets / javascripts / leaflet.query.js
index 8e45014a3ebab98c357e7058711a4db141dfbffb..00292b74dbfbb3ef6262dd50e949ad50bbc63d32 100644 (file)
@@ -17,10 +17,10 @@ L.OSM.query = function (options) {
 
     function update() {
       var wasDisabled = link.hasClass("disabled"),
 
     function update() {
       var wasDisabled = link.hasClass("disabled"),
-        isDisabled = map.getZoom() < 14;
+          isDisabled = map.getZoom() < 14;
       link
         .toggleClass("disabled", isDisabled)
       link
         .toggleClass("disabled", isDisabled)
-        .attr("data-original-title", I18n.t(isDisabled ?
+        .attr("data-bs-original-title", I18n.t(isDisabled ?
           "javascripts.site.queryfeature_disabled_tooltip" :
           "javascripts.site.queryfeature_tooltip"));
 
           "javascripts.site.queryfeature_disabled_tooltip" :
           "javascripts.site.queryfeature_tooltip"));