mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
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:
@@ -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
|
||||||
|
@@ -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/*"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user