fix #2659 (Entities dialog: Name in list doesn't update when updating name)

This commit is contained in:
rolux 2015-02-06 10:43:58 +00:00
parent b5212f2662
commit 685353a6f0

View file

@ -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();
});
}