update list when enabling/disabling user (should fix #533, but can't be tested locally)
This commit is contained in:
parent
08a792b68a
commit
baa48c2bf7
1 changed files with 5 additions and 1 deletions
|
@ -724,7 +724,11 @@ pandora.ui.usersDialog = function() {
|
||||||
} else {
|
} else {
|
||||||
data[event.id] = event.data.value;
|
data[event.id] = event.data.value;
|
||||||
}
|
}
|
||||||
|
if (event.id == 'status') {
|
||||||
|
$list.value(user.id, 'disabled', data.disabled);
|
||||||
|
} else {
|
||||||
$list.value(user.id, event.id, data[event.id]);
|
$list.value(user.id, event.id, data[event.id]);
|
||||||
|
}
|
||||||
pandora.api.editUser(data, function(result) {
|
pandora.api.editUser(data, function(result) {
|
||||||
Ox.Request.clearCache('findUsers');
|
Ox.Request.clearCache('findUsers');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue