From 044f9e28a59ee6ce87753e5a2b68db422da119e2 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 20 Nov 2014 20:39:38 +0000 Subject: [PATCH] typo --- static/js/entitiesDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index c62c25c9..fded7fbd 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -297,8 +297,8 @@ pandora.ui.entitiesDialog = function(options) { } function renderEntity() { - var id = ui.entitiesSelection['type'] - ? ui.entitiesSelection['type'][0] + var id = ui.entitiesSelection[type] + ? ui.entitiesSelection[type][0] : null; if (!id) { $entity.empty(); @@ -309,7 +309,7 @@ pandora.ui.entitiesDialog = function(options) { type: type, view: 'entity' }, function(html) { - if (id != ui.entitiesSelection['type'][0]) { + if (id != ui.entitiesSelection[type][0]) { return; } $entity.html(html);