Source: site.view [edit]
Function name: removeFavorite
Arguments: personId
Description: Removes a favorite person
Page type: html
Render function:   searchRender
Module: collabExt

Page source:

	
<h1>Save Favorite</h1>

<webl>
   // just saves in memory for now, might want to persist
   var favorites = wubvars.favoritePeople ? { };
   favorites = favorites - { personId };
   wubvars.favoritePeople := favorites;
   "";
</webl>

<h2>Favorite Removed.</h2>

<table>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
</table>