09-23-2013 06:02 AM
(function()
{
/**
* Backup single document.
*
* @method onActionBackup
* @param file {object} Object literal representing one or more file(s) or folder(s) to be actioned
*/
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onActionBackup",
onActionBackup: function dlA_onActionBackup(record)
{
alert("TEST");
var displayName = record.displayName;
var nodeRef = record.nodeRef;
this.modules.actions.genericAction(
{
success:
{
event:
{
name: "metadataRefresh"
},
message: this.msg("message.backup.success", record.displayName)
},
failure:
{
message: this.msg("message.backup.failure",record.displayName)
},
webscript:
{
name:"/slingshot/doclib/action/backup/site/{site}/{container}",
method: Alfresco.util.Ajax.POST
},
params:
{
site: this.options.siteId,
container: this.options.containerId
},
config:
{
requestContentType: Alfresco.util.Ajax.JSON,
dataObj:
{
nodeRefs: [record.nodeRef]
}
}
});
}
});
})();
09-26-2013 01:27 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.