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() {
|
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});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue