From 01eed9b96c47365c1e6517df6d21f5d8b9286f29 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 6 Sep 2023 15:59:23 +0100 Subject: [PATCH] Make the sharing controls read-only They aren't used for inputting any information, only for copying. --- app/assets/javascripts/leaflet.share.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 5fb189a76..c096a92fc 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -69,6 +69,7 @@ L.OSM.share = function (options) { .attr("id", "long_input") .attr("type", "text") .attr("class", "form-control form-control-sm font-monospace") + .attr("readonly", true) .on("click", select)); $("
") @@ -79,6 +80,7 @@ L.OSM.share = function (options) { .attr("id", "short_input") .attr("type", "text") .attr("class", "form-control form-control-sm font-monospace") + .attr("readonly", true) .on("click", select)); $("
") @@ -89,6 +91,7 @@ L.OSM.share = function (options) { $("