aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-13 21:52:59 -0400
committercash <cash.costello@gmail.com>2011-10-13 21:52:59 -0400
commite230036354269ac638521fed90cba3f6e77aff1c (patch)
treeb29f7bd224453f42f517024cd8d09d4a6dc4b5e4 /js/lib
parentc6a14d6c6a04eeee2c126ea20ec0e9ee23489ef3 (diff)
downloadelgg-e230036354269ac638521fed90cba3f6e77aff1c.tar.gz
elgg-e230036354269ac638521fed90cba3f6e77aff1c.tar.bz2
fixed bug where a removed user could not be added again in userpicker
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/userpicker.js7
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();
}