mbrevoort / jquery-facebook-multi-friend-selector

A jQuery based Alternative Facebook Multi-Friend Selector that uses the Graph API
Other
266 stars 64 forks source link

A public function added so a single -selected- id (friend) can be deselected by script. #20

Open cvanbergen opened 12 years ago

cvanbergen commented 12 years ago

I implemented this because I had other div displaying the friends I selected through the multi-friend-selector but I also needed to be able to deselect a selection in the multi-friend-selector via these other locations.

So now I can call: $("#deselectFriend").live("click", function () { var friendSelector = $("#jfmfs-container").data('jfmfs'); friendSelector.deselect($("#selectedFriendId").text()); });