forked from 0x2620/pandora
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({
|
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') {
|
Ox.Request.clearCache('findEntities');
|
||||||
$list.value(id, {name: result.data.name});
|
|
||||||
}
|
|
||||||
Ox.Request.clearCache('getEntity');
|
Ox.Request.clearCache('getEntity');
|
||||||
|
if (key.id == 'name') {
|
||||||
|
$list.reloadList(true);
|
||||||
|
}
|
||||||
renderEntity();
|
renderEntity();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue