mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.2 to HEAD
7388: New WCM File Picker features - 'folder' and 'saved-search' restrictions git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,7 +50,10 @@ alfresco.FilePickerWidget = function(uploadId,
|
||||
cancel_callback,
|
||||
resize_callback,
|
||||
selectableTypes,
|
||||
filterMimetypes)
|
||||
filterMimetypes,
|
||||
folderRestriction,
|
||||
savedSearchName,
|
||||
savedSearchContext)
|
||||
{
|
||||
this.uploadId = uploadId;
|
||||
this.node = node;
|
||||
@@ -61,6 +64,9 @@ alfresco.FilePickerWidget = function(uploadId,
|
||||
this.resize_callback = resize_callback || function() {};
|
||||
this.selectableTypes = selectableTypes;
|
||||
this.filterMimetypes = filterMimetypes;
|
||||
this.folderRestriction = folderRestriction;
|
||||
this.savedSearchName = savedSearchName;
|
||||
this.savedSearchContext = savedSearchContext;
|
||||
}
|
||||
|
||||
// static methods and properties
|
||||
@@ -256,6 +262,18 @@ _navigateToNode: function(path)
|
||||
{
|
||||
params.filterMimetypes = this.filterMimetypes;
|
||||
}
|
||||
if (this.folderRestriction)
|
||||
{
|
||||
req.content.folderRestriction = this.folderRestriction;
|
||||
}
|
||||
if (this.savedSearchName)
|
||||
{
|
||||
req.content.savedSearchName = this.savedSearchName;
|
||||
}
|
||||
if (this.savedSearchContext)
|
||||
{
|
||||
req.content.savedSearchContext = this.savedSearchContext;
|
||||
}
|
||||
|
||||
alfresco.AjaxHelper.sendRequest("FilePickerBean.getFilePickerData",
|
||||
params,
|
||||
|
Reference in New Issue
Block a user