From baa48c2bf77ea00bf1bff1b22ea6b6f1f4b87ccd Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 22 Apr 2012 10:33:31 +0000 Subject: [PATCH] update list when enabling/disabling user (should fix #533, but can't be tested locally) --- static/js/pandora/usersDialog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index 281d1524..334b7c50 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -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'); });