From b02480097423ad442dd533af5d2791f655dce6b2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 13 Feb 2015 11:05:03 +0000 Subject: [PATCH] load existing entities --- static/js/documentsPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index 4936551d..ad615fcc 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -721,7 +721,9 @@ pandora.ui.documentsPanel = function(options) { width: width - labelWidth }); }, - value: item.entities, + value: item.entities.map(function(entity) { + return [entity.type, entity.name]; + }), width: width }) .bindEvent({ @@ -755,7 +757,7 @@ pandora.ui.documentsPanel = function(options) { function renderList() { var options = { items: pandora.api.findDocuments, - keys: ['description', 'dimensions', 'extension', 'id', 'name', 'ratio', 'size', 'user'], + keys: ['description', 'dimensions', 'extension', 'id', 'name', 'ratio', 'size', 'user', 'entities'], query: { conditions: isItemView ? [{ key: 'item', value: ui.item, operator: '==' }] : [], operator: '&'