From: Andy Allan Date: Wed, 6 Sep 2023 14:59:23 +0000 (+0100) Subject: Make the sharing controls read-only X-Git-Tag: live~1196^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/01eed9b96c47365c1e6517df6d21f5d8b9286f29?ds=inline Make the sharing controls read-only They aren't used for inputting any information, only for copying. --- 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) { $("