load existing entities

This commit is contained in:
j 2015-02-13 11:05:03 +00:00
parent 0ebd50450f
commit b024800974

View file

@ -721,7 +721,9 @@ pandora.ui.documentsPanel = function(options) {
width: width - labelWidth width: width - labelWidth
}); });
}, },
value: item.entities, value: item.entities.map(function(entity) {
return [entity.type, entity.name];
}),
width: width width: width
}) })
.bindEvent({ .bindEvent({
@ -755,7 +757,7 @@ pandora.ui.documentsPanel = function(options) {
function renderList() { function renderList() {
var options = { var options = {
items: pandora.api.findDocuments, items: pandora.api.findDocuments,
keys: ['description', 'dimensions', 'extension', 'id', 'name', 'ratio', 'size', 'user'], keys: ['description', 'dimensions', 'extension', 'id', 'name', 'ratio', 'size', 'user', 'entities'],
query: { query: {
conditions: isItemView ? [{ key: 'item', value: ui.item, operator: '==' }] : [], conditions: isItemView ? [{ key: 'item', value: ui.item, operator: '==' }] : [],
operator: '&' operator: '&'