From 0b064f77224870668e99718f1bb9b2c3f9273ce3 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 16:07:39 +0000 Subject: [PATCH] update entity dialog --- static/js/entityDialog.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/entityDialog.js b/static/js/entityDialog.js index 6dade0e7..90123e72 100644 --- a/static/js/entityDialog.js +++ b/static/js/entityDialog.js @@ -17,10 +17,16 @@ pandora.ui.entityDialog = function() { }) .bindEvent({ click: function() { - var part = ui.part.entities; + var id = [ui.part.entities]; that.close(); - pandora.UI.set({'part.entities': part}); - // FIXME: Also set ui.entitiesType + pandora.api.getEntity({ + id: id + }, function(result) { + var type = result.data.type; + pandora.UI.set(Ox.extend({ + entitiesType: type + }, 'entitiesSelection.' + type, [id])); + }); pandora.$ui.entitiesDialog = pandora.ui.entitiesDialog().open(); } }),