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

Page source:

<webl>     WubCall("skillsrank.incHeader", []);      </webl>
<webl>     WubCall("skillsrank.incTop", ["search"]);         </webl>



<!-- content here 
============================================================ -->
<a name="content"></a>
	
<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>
 

</div>

<webl>     WubCall("skillsrank.incBottom", []);      </webl>
<webl>     WubCall("incSidemenuSearch", []);    </webl>
<webl>     WubCall("skillsrank.incFooter", []);      </webl>