update entity dialog

This commit is contained in:
rolux 2014-11-20 19:48:42 +00:00
parent f91af5f585
commit f75a476e6c

View file

@ -34,6 +34,9 @@ pandora.ui.entityDialog = function(options) {
} }
}); });
setTitle();
setContent();
function setContent() { function setContent() {
pandora.entity({ pandora.entity({
id: ui.entity, id: ui.entity,
@ -46,8 +49,8 @@ pandora.ui.entityDialog = function(options) {
function setTitle() { function setTitle() {
pandora.api.getEntity({ pandora.api.getEntity({
id: ui.entity id: ui.entity
}, function(data) { }, function(result) {
that.options({title: data.name}); that.options({title: result.data.name});
}); });
} }