update entities dialog (scroll, list update on name edit

This commit is contained in:
rolux 2014-11-21 15:16:00 +00:00
parent 11dd966be8
commit 618f07452c

View file

@ -131,7 +131,8 @@ pandora.ui.entitiesDialog = function(options) {
resize: updateList resize: updateList
}), }),
$entity = Ox.Element(), $entity = Ox.Element()
.css({overflowY: 'auto'}),
$itemMenu = Ox.MenuButton({ $itemMenu = Ox.MenuButton({
items: [ items: [
@ -379,7 +380,9 @@ pandora.ui.entitiesDialog = function(options) {
pandora.api.editEntity(Ox.extend({ pandora.api.editEntity(Ox.extend({
id: id id: id
}, key.id, data.value), function(result) { }, key.id, data.value), function(result) {
// ... if (key.id == 'name') {
$list.value(id, {name: result.data.name});
}
}); });
} }
}) })