|
|
|
|
@ -262,8 +262,8 @@ async function loadAttributes() {
|
|
|
|
|
if (definition.labelType === 'text') {
|
|
|
|
|
$input.prop("type", "text");
|
|
|
|
|
|
|
|
|
|
const attributeValues = await server.get('attributes/values/' + encodeURIComponent(valueAttr.name));
|
|
|
|
|
|
|
|
|
|
// no need to await for this, can be done asynchronously
|
|
|
|
|
server.get('attributes/values/' + encodeURIComponent(valueAttr.name)).then(attributeValues => {
|
|
|
|
|
if (attributeValues.length === 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -281,6 +281,7 @@ async function loadAttributes() {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$input.focus(() => $input.autocomplete("search", ""));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else if (definition.labelType === 'number') {
|
|
|
|
|
$input.prop("type", "number");
|
|
|
|
|
@ -352,6 +353,7 @@ async function loadAttributes() {
|
|
|
|
|
|
|
|
|
|
$multiplicityCell.append(addButton).append(" ").append(removeButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $tr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|