From 21f8bbba668896515ae540e1c212cd981aa6268d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 8 Feb 2016 14:14:41 -0500 Subject: [PATCH] update item editor --- .../metadataeditor/metadataeditor.js | 26 ++++++++++--------- .../metadataeditor.template.html | 5 ++-- dashboard-ui/scripts/librarybrowser.js | 8 +++--- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.js b/dashboard-ui/components/metadataeditor/metadataeditor.js index 9329a2df9f..c661b036f3 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.js +++ b/dashboard-ui/components/metadataeditor/metadataeditor.js @@ -757,34 +757,36 @@ var lastType = ''; var html = ''; - var elem = $('#peopleList', context); + var elem = context.querySelector('#peopleList'); for (var i = 0, length = people.length; i < length; i++) { var person = people[i]; - var type = person.Type || Globalize.translate('PersonTypePerson'); + html += ''; - if (type != lastType) { - html += '
  • ' + type + '
  • '; - lastType = type; - } + html += ''; - html += '
  • '; + html += ''; + html += ''; - html += '

    ' + (person.Name || '') + '

    '; + html += '
    '; + html += (person.Name || ''); + html += '
    '; if (person.Role && person.Role != lastType) { - html += '

    ' + (person.Role) + '

    '; + html += '
    ' + (person.Role) + '
    '; } + html += '
    '; + html += ''; - html += '' + Globalize.translate('Delete') + ''; + html += ''; - html += '
  • '; + html += '
    '; } - //elem.html(html); + elem.innerHTML = html; $('.btnDeletePerson', elem).on('click', function () { diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.template.html b/dashboard-ui/components/metadataeditor/metadataeditor.template.html index 073feaa129..55cc0c02f0 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.template.html +++ b/dashboard-ui/components/metadataeditor/metadataeditor.template.html @@ -1,5 +1,5 @@ 
    - +
    ${ButtonEdit}
    @@ -236,8 +236,7 @@ ${ButtonAdd} -
    -
      +