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() {
pandora.entity({
id: ui.entity,
@ -46,8 +49,8 @@ pandora.ui.entityDialog = function(options) {
function setTitle() {
pandora.api.getEntity({
id: ui.entity
}, function(data) {
that.options({title: data.name});
}, function(result) {
that.options({title: result.data.name});
});
}