Merge remote-tracking branch 'upstream/pull/5742'
This commit is contained in:
commit
7c3c9618ea
12 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
$(function () {
|
||||
// Attach referer to authentication buttons
|
||||
$(".auth_button").each(function () {
|
||||
const params = new URLSearchParams(this.search);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
$(function () {
|
||||
let marker, map;
|
||||
|
||||
function setLocation(e) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
$(function () {
|
||||
const id = $("#id-embed"),
|
||||
idData = id.data();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
$(function () {
|
||||
const params = OSM.params();
|
||||
|
||||
let url = "/note/new";
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
//= require index/home
|
||||
//= require router
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
const map = new L.OSM.Map("map", {
|
||||
zoomControl: false,
|
||||
layerControl: false,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
$(function () {
|
||||
// Preserve location hash in referer
|
||||
if (location.hash) {
|
||||
$("#referer").val($("#referer").val() + location.hash);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
if (OSM.MATOMO) {
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
const base = location.protocol + "//" + OSM.MATOMO.location + "/";
|
||||
let matomoTracker;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
});
|
||||
}());
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
const defaultHomeZoom = 12;
|
||||
let map, marker, deleted_lat, deleted_lon;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$(document).ready(function () {
|
||||
$(function () {
|
||||
const params = OSM.params();
|
||||
|
||||
if (params.lat && params.lon) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue