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
|
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});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue