From 2a31d2e65a8a53f010487b3bcf0a3102b6c1aea7 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 16 Dec 2014 19:55:05 +0000 Subject: [PATCH] fix entity dialog --- static/js/entityDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/entityDialog.js b/static/js/entityDialog.js index bc1d36eb6..4f19b8fbb 100644 --- a/static/js/entityDialog.js +++ b/static/js/entityDialog.js @@ -2,7 +2,7 @@ 'use strict'; -pandora.ui.entityDialog = function(options) { +pandora.ui.entityDialog = function() { var ui = pandora.user.ui, @@ -39,7 +39,7 @@ pandora.ui.entityDialog = function(options) { setContent(); function setContent() { - pandora.entity({ + ui.entity && pandora.entity({ id: ui.entity, view: 'entity' }, function(html) { @@ -48,7 +48,7 @@ pandora.ui.entityDialog = function(options) { } function setTitle() { - pandora.api.getEntity({ + ui.entity && pandora.api.getEntity({ id: ui.entity }, function(result) { that.options({title: result.data.name});