X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa78da82fe9a30dfa77e2d503701787aafc6cf55..a569343e0158ccb23e9329b9a2c856da6beb729b:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 49266f919..783c4da8d 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -192,11 +192,11 @@ $(document).ready(function () { }); if (Cookies.get("_osm_welcome") !== "hide") { - $(".welcome").addClass("visible"); + $(".welcome").removeAttr("hidden"); } $(".welcome .btn-close").on("click", function () { - $(".welcome").removeClass("visible"); + $(".welcome").hide(); Cookies.set("_osm_welcome", "hide", { secure: true, expires: expiry, path: "/", samesite: "lax" }); }); @@ -406,4 +406,8 @@ $(document).ready(function () { e.preventDefault(); } }); + + $(document).on("click", "#sidebar_content .btn-close", function () { + OSM.router.route("/" + OSM.formatHash(map)); + }); });