load existing entities
This commit is contained in:
parent
0ebd50450f
commit
b024800974
1 changed files with 4 additions and 2 deletions
|
@ -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: '&'
|
||||||
|
|
Loading…
Reference in a new issue