Files
alfresco-community-repo/source/web/scripts/ajax/link-validation-report.js
Gavin Cornwell 1bbbb2b4ca - Added update status button to status area of links management report which now does an incremental report
- Re-Run report button now runs fresh report
- Generated files are now in a collapsable panel (closed by default)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 14:44:27 +00:00

28 lines
734 B
JavaScript

Alfresco.toggleGeneratedFiles = function(icon, genFilesId)
{
var currentState = icon.className;
var genFilesDiv = document.getElementById(genFilesId);
if (currentState == "collapsed")
{
icon.src = getContextPath() + "/images/icons/arrow_open.gif";
icon.className = "expanded";
// show the div holding the generated files
if (genFilesDiv != null)
{
genFilesDiv.style.display = "block";
}
}
else
{
icon.src = getContextPath() + "/images/icons/arrow_closed.gif";
icon.className = "collapsed";
// hide the div holding the generated files
if (genFilesDiv != null)
{
genFilesDiv.style.display = "none";
}
}
}