var Fse; if (!Fse) Fse = {}; if( ! Fse.DocumentPortlet ) Fse.DocumentPortlet = {}; showAllDocuments = function( sPortletName, sURLRoot, iPid, iPtk ) { var sPortletId = sPortletName + "-portlet-view"; var sURL = sURLRoot + "/portlets/documents.cfm?pid=" + iPid + "&pTk=" + iPtk + "&showAllDocuments"; // this snipped of code forces a re-initialization of the expand/contract state // of the portlet, it is necessary because the display size may change // on the reload var oPortletView = $(sPortletId); if( oPortletView ) { oPortletView.setAttribute( "fse:initialState", "open" ); oPortletView.style.height = "auto"; oPortletView.style.width = "auto"; } Fse.Portal.initializePortlet( sPortletName ); // end of snippet Fse.Portal.loadPortlet( sPortletId, sURL ); }; Fse.DocumentPortlet.toggleView = function( oObject ) { if( oObject.className.match( /closed/ )) { Spry.Utils.removeClassName( oObject, "closed" ); } else { Spry.Utils.addClassName( oObject, "closed" ); } };