Make the sharing controls read-only

They aren't used for inputting any information, only for copying.
This commit is contained in:
Andy Allan 2023-09-06 15:59:23 +01:00
parent dc24f6c219
commit 01eed9b96c

View file

@ -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));
$("<div>")
@ -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));
$("<div>")
@ -89,6 +91,7 @@ L.OSM.share = function (options) {
$("<textarea>")
.attr("id", "embed_html")
.attr("class", "form-control form-control-sm font-monospace")
.attr("readonly", true)
.on("click", select))
.append(
$("<p>")