update entity dialog

This commit is contained in:
rolux 2014-12-17 16:07:39 +00:00
parent 1c2a0803c1
commit 0b064f7722

View file

@ -17,10 +17,16 @@ pandora.ui.entityDialog = function() {
})
.bindEvent({
click: function() {
var part = ui.part.entities;
var id = [ui.part.entities];
that.close();
pandora.UI.set({'part.entities': part});
// FIXME: Also set ui.entitiesType
pandora.api.getEntity({
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();
}
}),