update entity dialog
This commit is contained in:
parent
f91af5f585
commit
f75a476e6c
1 changed files with 5 additions and 2 deletions
|
@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue