Merge remote-tracking branch 'upstream/pull/5742'

This commit is contained in:
Tom Hughes 2025-03-01 15:07:58 +00:00
commit 7c3c9618ea
12 changed files with 12 additions and 12 deletions

View file

@ -84,7 +84,7 @@ window.updateLinks = function (loc, zoom, layers, object) {
.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;

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
// Attach referer to authentication buttons
$(".auth_button").each(function () {
const params = new URLSearchParams(this.search);

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
let marker, map;
function setLocation(e) {

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
const id = $("#id-embed"),
idData = id.data();

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
const params = OSM.params();
let url = "/note/new";

View file

@ -24,7 +24,7 @@
//= require index/home
//= require router
$(document).ready(function () {
$(function () {
const map = new L.OSM.Map("map", {
zoomControl: false,
layerControl: false,

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
// Preserve location hash in referer
if (location.hash) {
$("#referer").val($("#referer").val() + location.hash);

View file

@ -1,5 +1,5 @@
if (OSM.MATOMO) {
$(document).ready(function () {
$(function () {
const base = location.protocol + "//" + OSM.MATOMO.location + "/";
let matomoTracker;

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
$(".messages-table .destroy-message").on("turbo:submit-end", function (event) {
if (event.detail.success) {
event.target.dataset.isDestroyed = true;

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
function openShareUrl(url, initialWidth = 640, initialHeight = 480) {
const width = Math.max(100, Math.min(screen.width, initialWidth));
const height = Math.max(100, Math.min(screen.height, initialHeight));

View file

@ -6,7 +6,7 @@
});
}());
$(document).ready(function () {
$(function () {
const defaultHomeZoom = 12;
let map, marker, deleted_lat, deleted_lon;

View file

@ -1,4 +1,4 @@
$(document).ready(function () {
$(function () {
const params = OSM.params();
if (params.lat && params.lon) {