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() {
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);