in edit.js, convert entity property ID to be a text-field so the data can be copied

This commit is contained in:
Seth Alves 2017-02-15 16:29:50 -08:00
parent 3d7733219c
commit 12b8a77488
2 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@
</div>
<div id="id" class="property value">
<label>ID:</label>
<span id="property-id" class="selectable"></span>
<input type="text" id="property-id" readonly>
</div>
<div class="section-header hyperlink-group hyperlink-section">
<label>Hyperlink</label><span>M</span>

View file

@ -740,7 +740,7 @@ function loaded() {
}
elTypeIcon.style.display = "none";
elType.innerHTML = "<i>No selection</i>";
elID.innerHTML = "";
elID.value = "";
disableProperties();
} else if (data.selections && data.selections.length > 1) {
deleteJSONEditor();
@ -770,7 +770,7 @@ function loaded() {
elTypeIcon.innerHTML = ICON_FOR_TYPE[type];
elTypeIcon.style.display = "inline-block";
elID.innerHTML = ids.join("<br>");
elID.value = "";
disableProperties();
} else {
@ -783,7 +783,7 @@ function loaded() {
//the event bridge and json parsing handle our avatar id string differently.
lastEntityID = '"' + properties.id + '"';
elID.innerHTML = properties.id;
elID.value = properties.id;
elType.innerHTML = properties.type;
elTypeIcon.innerHTML = ICON_FOR_TYPE[properties.type];