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({ .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();
} }
}), }),