Merge pull request #1232 from sir-pinecone/fix-group-member-removal

Fix for autocomplete delete action removing only the last item
This commit is contained in:
Robin Ward 2013-07-22 12:22:14 -07:00
commit 0ad93e436c

View File

@ -64,7 +64,7 @@ $.fn.autocomplete = function(options) {
d.find('a').click(function() {
closeAutocomplete();
inputSelectedItems.splice($.inArray(item), 1);
inputSelectedItems.splice($.inArray(item, inputSelectedItems), 1);
$(this).parent().parent().remove();
if (options.single) {
me.show();