Don't pass placement: right to tooltip()

Bootstrap flips it on its own, see https://getbootstrap.com/docs/5.2/components/tooltips/#directions
This commit is contained in:
Anton Khorev 2023-10-17 15:19:37 +03:00
parent dd905b5aa8
commit 6b203c63fe

View file

@ -175,8 +175,7 @@ $(document).ready(function () {
}
}
var placement = $("html").attr("dir") === "rtl" ? "right" : "left";
$(".leaflet-control .control-button").tooltip({ placement: placement, container: "body" });
$(".leaflet-control .control-button").tooltip({ placement: "left", container: "body" });
var expiry = new Date();
expiry.setYear(expiry.getFullYear() + 10);