X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..ec3dad11d5b4765c6fae16ce90875aa62ff75eff:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index f0b96f59f..5ba36a455 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -1,5 +1,6 @@ //= require_self //= require leaflet.sidebar +//= require leaflet.sidebar-pane //= require leaflet.locatecontrol/src/L.Control.Locate //= require leaflet.layers //= require leaflet.key @@ -195,7 +196,7 @@ $(document).ready(function () { $(".welcome").addClass("visible"); } - $(".welcome .close").on("click", function () { + $(".welcome .btn-close").on("click", function () { $(".welcome").removeClass("visible"); Cookies.set("_osm_welcome", "hide", { secure: true, expires: expiry, path: "/", samesite: "lax" }); }); @@ -203,7 +204,7 @@ $(document).ready(function () { var bannerExpiry = new Date(); bannerExpiry.setYear(bannerExpiry.getFullYear() + 1); - $("#banner .close-wrap").on("click", function (e) { + $("#banner .btn-close").on("click", function (e) { var cookieId = e.target.id; $("#banner").hide(); e.preventDefault(); @@ -212,13 +213,13 @@ $(document).ready(function () { } }); - if (OSM.PIWIK) { + if (OSM.MATOMO) { map.on("layeradd", function (e) { if (e.layer.options) { - var goal = OSM.PIWIK.goals[e.layer.options.keyid]; + var goal = OSM.MATOMO.goals[e.layer.options.keyid]; if (goal) { - $("body").trigger("piwikgoal", goal); + $("body").trigger("matomogoal", goal); } } });