Make the sharing controls read-only
They aren't used for inputting any information, only for copying.
This commit is contained in:
parent
dc24f6c219
commit
01eed9b96c
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,7 @@ L.OSM.share = function (options) {
|
||||||
.attr("id", "long_input")
|
.attr("id", "long_input")
|
||||||
.attr("type", "text")
|
.attr("type", "text")
|
||||||
.attr("class", "form-control form-control-sm font-monospace")
|
.attr("class", "form-control form-control-sm font-monospace")
|
||||||
|
.attr("readonly", true)
|
||||||
.on("click", select));
|
.on("click", select));
|
||||||
|
|
||||||
$("<div>")
|
$("<div>")
|
||||||
|
@ -79,6 +80,7 @@ L.OSM.share = function (options) {
|
||||||
.attr("id", "short_input")
|
.attr("id", "short_input")
|
||||||
.attr("type", "text")
|
.attr("type", "text")
|
||||||
.attr("class", "form-control form-control-sm font-monospace")
|
.attr("class", "form-control form-control-sm font-monospace")
|
||||||
|
.attr("readonly", true)
|
||||||
.on("click", select));
|
.on("click", select));
|
||||||
|
|
||||||
$("<div>")
|
$("<div>")
|
||||||
|
@ -89,6 +91,7 @@ L.OSM.share = function (options) {
|
||||||
$("<textarea>")
|
$("<textarea>")
|
||||||
.attr("id", "embed_html")
|
.attr("id", "embed_html")
|
||||||
.attr("class", "form-control form-control-sm font-monospace")
|
.attr("class", "form-control form-control-sm font-monospace")
|
||||||
|
.attr("readonly", true)
|
||||||
.on("click", select))
|
.on("click", select))
|
||||||
.append(
|
.append(
|
||||||
$("<p>")
|
$("<p>")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue