diff options
author | cash <cash.costello@gmail.com> | 2011-10-13 21:52:59 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-13 21:52:59 -0400 |
commit | e230036354269ac638521fed90cba3f6e77aff1c (patch) | |
tree | b29f7bd224453f42f517024cd8d09d4a6dc4b5e4 /js | |
parent | c6a14d6c6a04eeee2c126ea20ec0e9ee23489ef3 (diff) | |
download | elgg-e230036354269ac638521fed90cba3f6e77aff1c.tar.gz elgg-e230036354269ac638521fed90cba3f6e77aff1c.tar.bz2 |
fixed bug where a removed user could not be added again in userpicker
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/userpicker.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/lib/userpicker.js b/js/lib/userpicker.js index ece5a6951..f2c2aa53f 100644 --- a/js/lib/userpicker.js +++ b/js/lib/userpicker.js @@ -48,7 +48,12 @@ elgg.userpicker.addUser = function(event, ui) { } elgg.userpicker.removeUser = function(event) { - $(this).closest('.elgg-user-picker-list > li').remove(); + var item = $(this).closest('.elgg-user-picker-list > li'); + + var guid = item.find('[name="members[]"]').val(); + delete elgg.userpicker.userList[guid]; + + item.remove(); event.preventDefault(); } |