mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged V3.1 to HEAD
14465: Fix for ALFCOM-195 - date added to WCM FreeMarker template model. 14466: Fix for ETHREEOH-2075 14469: Fix for ETHREEOH-2120 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14564 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
|
||||
function main()
|
||||
{
|
||||
|
||||
var json = "";
|
||||
var versions = [];
|
||||
|
||||
|
@@ -39,18 +39,8 @@ function getDocList(filter)
|
||||
var typeQuery = getTypeFilterQuery(url.templateArgs.type);
|
||||
query += " " + typeQuery;
|
||||
|
||||
// Sort the list before trimming to page chunks
|
||||
allAssets = search.luceneSearch(query, filterParams.sortBy, filterParams.sortByAscending);
|
||||
|
||||
// Limit the resultset?
|
||||
if (filterParams.limitResults)
|
||||
{
|
||||
/**
|
||||
* This isn't a true results trim (page-trimming is done below), as we haven't yet filtered by type.
|
||||
* However, it's useful for a quick slimming-down of the "recently..." queries.
|
||||
*/
|
||||
allAssets = allAssets.slice(0, filterParams.limitResults);
|
||||
}
|
||||
// Query and sort the list before trimming to page chunks below
|
||||
allAssets = search.luceneSearch(query, filterParams.sortBy, filterParams.sortByAscending, filterParams.limitResults ? filterParams.limitResults : 0);
|
||||
|
||||
// Ensure folders and folderlinks appear at the top of the list
|
||||
folderAssets = new Array();
|
||||
|
Reference in New Issue
Block a user