// Disable the button group and also the buttons to avoid
// inconsistent behaviour when zooming
- var editDisabled = zoom < 13;
+ const editDisabled = zoom < 13;
$("#edit_tab")
.tooltip({ placement: "bottom" })
.tooltip(editDisabled ? "enable" : "disable")
.toggleClass("disabled", editDisabled);
};
-$(document).ready(function () {
+$(function () {
// NB: Turns Turbo Drive off by default. Turbo Drive must be opt-in on a per-link and per-form basis
// See https://turbo.hotwired.dev/reference/drive#turbo.session.drive
Turbo.session.drive = false;
breakpointWidth = 768;
let moreItemWidth = 0;
+ OSM.csrf = {};
+ OSM.csrf[($("meta[name=csrf-param]").attr("content"))] = $("meta[name=csrf-token]").attr("content");
+
function updateHeader() {
- var windowWidth = $(window).width();
+ const windowWidth = $(window).width();
if (windowWidth < breakpointWidth) {
$("body").addClass("small-nav");