fix #2659 (Entities dialog: Name in list doesn't update when updating name)
This commit is contained in:
parent
b5212f2662
commit
685353a6f0
1 changed files with 4 additions and 3 deletions
|
@ -402,10 +402,11 @@ 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});
|
||||
}
|
||||
Ox.Request.clearCache('findEntities');
|
||||
Ox.Request.clearCache('getEntity');
|
||||
if (key.id == 'name') {
|
||||
$list.reloadList(true);
|
||||
}
|
||||
renderEntity();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue