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:
Glen Johnson
2008-02-24 23:23:55 +00:00
parent e73706d5e0
commit ce0f65b6d6
6 changed files with 1028 additions and 418 deletions

View File

@@ -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,