Fix unreported issue with dynamic tree nodes and lost "hidden folders" info tip in Share DocLib.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19943 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mike Hatfield
2010-04-21 21:52:29 +00:00
parent 972bbbd2c0
commit 2da18b5013
2 changed files with 14 additions and 4 deletions

View File

@@ -71,7 +71,16 @@ function getDoclist()
// Node type counts // Node type counts
var folderNodesCount = folderNodes.length, var folderNodesCount = folderNodes.length,
documentNodesCount = documentNodes.length, documentNodesCount = documentNodes.length,
nodes = folderNodes.concat(documentNodes), nodes, totalRecords;
if (parsedArgs.type === "documents")
{
nodes = documentNodes;
}
else
{
nodes = folderNodes.concat(documentNodes);
}
totalRecords = nodes.length; totalRecords = nodes.length;
// Pagination // Pagination

View File

@@ -1,11 +1,12 @@
var Filters = var Filters =
{ {
/** /**
* Type map to filter required types * Type map to filter required types.
* NOTE: "documents" filter also returns folders to show UI hint about hidden folders.
*/ */
TYPE_MAP: TYPE_MAP:
{ {
"documents": '+(TYPE:"{http://www.alfresco.org/model/content/1.0}content" OR TYPE:"{http://www.alfresco.org/model/application/1.0}filelink")', "documents": '+(TYPE:"{http://www.alfresco.org/model/content/1.0}content" OR TYPE:"{http://www.alfresco.org/model/application/1.0}filelink" OR TYPE:"{http://www.alfresco.org/model/content/1.0}folder")',
"folders": '+(TYPE:"{http://www.alfresco.org/model/content/1.0}folder" OR TYPE:"{http://www.alfresco.org/model/application/1.0}folderlink")', "folders": '+(TYPE:"{http://www.alfresco.org/model/content/1.0}folder" OR TYPE:"{http://www.alfresco.org/model/application/1.0}folderlink")',
"images": "-TYPE:\"{http://www.alfresco.org/model/content/1.0}thumbnail\" +@cm\\:content.mimetype:image/*" "images": "-TYPE:\"{http://www.alfresco.org/model/content/1.0}thumbnail\" +@cm\\:content.mimetype:image/*"
}, },