mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- 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
28 lines
734 B
JavaScript
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";
|
|
}
|
|
}
|
|
} |