update entity dialog
This commit is contained in:
parent
1c2a0803c1
commit
0b064f7722
1 changed files with 9 additions and 3 deletions
|
@ -17,10 +17,16 @@ pandora.ui.entityDialog = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
var part = ui.part.entities;
|
var id = [ui.part.entities];
|
||||||
that.close();
|
that.close();
|
||||||
pandora.UI.set({'part.entities': part});
|
pandora.api.getEntity({
|
||||||
// FIXME: Also set ui.entitiesType
|
id: id
|
||||||
|
}, function(result) {
|
||||||
|
var type = result.data.type;
|
||||||
|
pandora.UI.set(Ox.extend({
|
||||||
|
entitiesType: type
|
||||||
|
}, 'entitiesSelection.' + type, [id]));
|
||||||
|
});
|
||||||
pandora.$ui.entitiesDialog = pandora.ui.entitiesDialog().open();
|
pandora.$ui.entitiesDialog = pandora.ui.entitiesDialog().open();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue