]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.key.js
Merge pull request #3581 from harry-wood/discourage-note-report
[rails.git] / app / assets / javascripts / leaflet.key.js
index 3e8e66854a466747bca9f323a69233e846996e77..367c39c1462067ab74ed7fdad466b0814a5b75fa 100644 (file)
@@ -20,7 +20,7 @@ L.OSM.key = function (options) {
       .appendTo($ui)
       .append(
         $("<button type='button' class='btn-close float-end mt-1'>")
-          .attr("aria-label",I18n.t("javascripts.close"))
+          .attr("aria-label", I18n.t("javascripts.close"))
           .bind("click", toggle))
       .append(
         $("<h4>")
@@ -62,7 +62,7 @@ L.OSM.key = function (options) {
       var disabled = ["mapnik", "cyclemap"].indexOf(map.getMapBaseLayerId()) === -1;
       button
         .toggleClass("disabled", disabled)
-        .attr("data-original-title",
+        .attr("data-bs-original-title",
               I18n.t(disabled ?
                 "javascripts.key.tooltip_disabled" :
                 "javascripts.key.tooltip"));