in my application I created a Javascript(posted below) to show and hide chatter feeds in the home page which was working fine till winter release.But post Spring '13 release the chatter toggle chatter.getFeed().toggle() is not working properly.The method is calling two parameters chatter.getFeed().toggle(param1, param2)!! No idea whats param 1 and param 2....and what should i pass to fix it.Anybody got any ideas what are the parameters??
The SCRIPT:
<iframe id="wayhomeFrame" height="700" src="/apex/Unilever_Way_Home" frameborder="0" width="100%"></iframe>
<script>
var p2 = document.getElementById("wayhomeFrame").parentNode.previousSibling;
p2.parentNode.removeChild(p2);
</script>
<script>
var thehideLink = document.getElementById("hideFeedLink");
var attributeStyle=thehideLink.hasAttribute("style");
if(!attributeStyle){
var newItem=document.createElement("script");
newItem.innerHTML = "chatter.getFeed().toggle('',true);";
thehideLink.insertBefore(newItem,thehideLink.childNodes[0]);
}
</script>
<script>
var ScriptDiv = document.getElementById("hideFeedLink");
var style = ScriptDiv.getAttribute("style");
if(style == null){
var sHTML = ScriptDiv.innerHTML;
var sScript="<script DEFER>";
sScript = sScript + "chatter.getFeed().toggle('',true); ";
sScript = sScript + "</script" + ">";
ScriptDiv.innerHTML = sHTML + sScript;
}
</script>