This commit is contained in:
rolux 2014-11-20 20:39:38 +00:00
parent 5c1886db42
commit 044f9e28a5

View file

@ -297,8 +297,8 @@ pandora.ui.entitiesDialog = function(options) {
} }
function renderEntity() { function renderEntity() {
var id = ui.entitiesSelection['type'] var id = ui.entitiesSelection[type]
? ui.entitiesSelection['type'][0] ? ui.entitiesSelection[type][0]
: null; : null;
if (!id) { if (!id) {
$entity.empty(); $entity.empty();
@ -309,7 +309,7 @@ pandora.ui.entitiesDialog = function(options) {
type: type, type: type,
view: 'entity' view: 'entity'
}, function(html) { }, function(html) {
if (id != ui.entitiesSelection['type'][0]) { if (id != ui.entitiesSelection[type][0]) {
return; return;
} }
$entity.html(html); $entity.html(html);