forked from 0x2620/pandora
update entities dialog (scroll, list update on name edit
This commit is contained in:
parent
11dd966be8
commit
618f07452c
1 changed files with 5 additions and 2 deletions
|
@ -131,7 +131,8 @@ pandora.ui.entitiesDialog = function(options) {
|
|||
resize: updateList
|
||||
}),
|
||||
|
||||
$entity = Ox.Element(),
|
||||
$entity = Ox.Element()
|
||||
.css({overflowY: 'auto'}),
|
||||
|
||||
$itemMenu = Ox.MenuButton({
|
||||
items: [
|
||||
|
@ -379,7 +380,9 @@ pandora.ui.entitiesDialog = function(options) {
|
|||
pandora.api.editEntity(Ox.extend({
|
||||
id: id
|
||||
}, key.id, data.value), function(result) {
|
||||
// ...
|
||||
if (key.id == 'name') {
|
||||
$list.value(id, {name: result.data.name});
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue