Our client wanted those two links under the My Colleagues webpart gone. I added the following javascript to the bottom of my page.
<script language="javascript">
//Grab the tbody of the table
var tbody = document.getElementById("SPS_CLMICSRCHRES").childNodes[0];
if(tbody != null)
{
//Count the rows
var rowCount = tbody.childNodes.length;
//Hide the rows we don't want
tbody.childNodes[rowCount-1].style.display = "none";
tbody.childNodes[rowCount-2].style.display = "none";
tbody.childNodes[rowCount-3].style.display = "none";
tbody.childNodes[rowCount-4].style.display = "none";
tbody.childNodes[rowCount-5].style.display = "none";
//Hide the top row
var headerRow = document.getElementById("tr_updcoll");
if(headerRow != null)
headerRow.style.display = "none";
}
</script>
Couldn't find a better way of doing it. MS didn't provide an option to turn them off. Didn't add an ID to them either.
Saturday, October 20, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment