]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Merge remote-tracking branch 'upstream/pull/3736'
[rails.git] / app / assets / javascripts / application.js
index 5028cdd1e2b272b0798d318a04f3a2f0705a11ef..4f53a0493ceda2ff2e1f812540e636df76d467e5 100644 (file)
@@ -13,7 +13,7 @@
 //= require leaflet.locationfilter
 //= require i18n
 //= require oauth
-//= require piwik
+//= require matomo
 //= require richtext
 //= require qs/dist/qs
 //= require bs-custom-file-input
@@ -33,6 +33,7 @@ window.updateLinks = function (loc, zoom, layers, object) {
     delete args.way;
     delete args.relation;
     delete args.changeset;
+    delete args.note;
 
     if (object && editlink) {
       args[object.type] = object.id;
@@ -59,14 +60,14 @@ window.updateLinks = function (loc, zoom, layers, object) {
   var editDisabled = zoom < 13;
   $("#edit_tab")
     .tooltip({ placement: "bottom" })
-    .attr("data-original-title", editDisabled ?
+    .attr("data-bs-original-title", editDisabled ?
       I18n.t("javascripts.site.edit_disabled_tooltip") : "")
-    // Disable the button group and also the buttons to avoid 
+    // Disable the button group and also the buttons to avoid
     // inconsistent behaviour when zooming
     .toggleClass("disabled", editDisabled)
     .find("a")
-    .toggleClass("disabled", editDisabled)
- };
+    .toggleClass("disabled", editDisabled);
+};
 
 window.maximiseMap = function () {
   $("#content").addClass("maximised");