From f75a476e6c871aac4069b5f69a04457f7907870a Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 20 Nov 2014 19:48:42 +0000 Subject: [PATCH] update entity dialog --- static/js/entityDialog.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/entityDialog.js b/static/js/entityDialog.js index a2bdf93d9..f7fe47930 100644 --- a/static/js/entityDialog.js +++ b/static/js/entityDialog.js @@ -34,6 +34,9 @@ pandora.ui.entityDialog = function(options) { } }); + setTitle(); + setContent(); + function setContent() { pandora.entity({ id: ui.entity, @@ -46,8 +49,8 @@ pandora.ui.entityDialog = function(options) { function setTitle() { pandora.api.getEntity({ id: ui.entity - }, function(data) { - that.options({title: data.name}); + }, function(result) { + that.options({title: result.data.name}); }); }