update list when enabling/disabling user (should fix #533, but can't be tested locally)

This commit is contained in:
rolux 2012-04-22 10:33:31 +00:00
parent 08a792b68a
commit baa48c2bf7

View file

@ -724,7 +724,11 @@ pandora.ui.usersDialog = function() {
} else {
data[event.id] = event.data.value;
}
$list.value(user.id, event.id, data[event.id]);
if (event.id == 'status') {
$list.value(user.id, 'disabled', data.disabled);
} else {
$list.value(user.id, event.id, data[event.id]);
}
pandora.api.editUser(data, function(result) {
Ox.Request.clearCache('findUsers');
});