diff --git a/src/public/javascripts/services/note_detail.js b/src/public/javascripts/services/note_detail.js index c99fcbe00..f02d0f467 100644 --- a/src/public/javascripts/services/note_detail.js +++ b/src/public/javascripts/services/note_detail.js @@ -34,7 +34,7 @@ const $relationList = $("#relation-list"); const $relationListInner = $("#relation-list-inner"); const $childrenOverview = $("#children-overview"); const $scriptArea = $("#note-detail-script-area"); -const $promotedAttributes = $("#note-detail-promoted-attributes"); +const $promotedAttributesContainer = $("#note-detail-promoted-attributes"); let currentNote = null; @@ -226,7 +226,7 @@ async function showChildrenOverview(hideChildrenOverview) { } async function loadAttributes() { - $promotedAttributes.empty(); + $promotedAttributesContainer.empty(); const noteId = getCurrentNoteId(); @@ -237,20 +237,38 @@ async function loadAttributes() { let idx = 1; if (promoted.length > 0) { - for (const promotedAttr of promoted) { - if (promotedAttr.type === 'label-definition') { - const inputId = "promoted-input-" + idx; - const $div = $("
").addClass("class", "form-group"); - const $label = $("