08-24-2010 09:52 AM
//Added this method
onActionFileTo: function dlA_onActionFileTo(assets)
{
this._copyMoveTo("file", assets);
},
_copyMoveTo: function dlA__copyMoveTo(mode, asset)
{
// Check mode is an allowed one
if (!mode in
{
copy: true,
file: true, //added this line
move: true
})
{
throw new Error("'" + mode + "' is not a valid Copy/Move/File to mode.");
}
if (!this.modules.copyMoveTo)
{
this.modules.copyMoveTo = new Alfresco.module.DoclibCopyMoveTo(this.id + "-copyMoveTo");
}
this.modules.copyMoveTo.setOptions(
{
mode: mode,
siteId: this.options.siteId,
containerId: this.options.containerId,
path: this.currentPath,
files: asset,
workingMode: this.options.workingMode
}).showDialog();
},
//Added
<action type="action-link" id="onActionFileTo" label="actions.document.file-to" />
//Added
<action type="action-link" id="onActionFileTo" label="actions.document.file-to" />
//added
actions.document.file-to=File to…
07-08-2011 05:07 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.