Hi AllI am making a custom archive action and for that i have written a javascript action and make all the changes for the action but when i click on my action in document library it doesn't do anything. I think my js action is not registered properly.Please anyone can help me with this as soon as possible.Below is my js action.
(function() {
YAHOO.Bubbling.fire("registerAction",{
actionName: "onActionArchive",
onActionArchive: function dlA__onActionArchive(record) {
var fnSuccess = function dlA_onActionArchive_success(p_data) {
this._inFlight = false;
Alfresco.util.PopupManager.displayMessage({
text: this.msg("message.archive.success", record.displayName)
});
this._updateDocList.call(this);
var moved = toMoveRecord.getData();
if (moved.node.isContainer)
{
YAHOO.Bubbling.fire("folderMoved",
{
multiple: true,
nodeRef: moved.nodeRef,
destination: path
});
}
YAHOO.Bubbling.fire("metadataRefresh");
};
this.modules.actions.genricAction({
success: {
callback: {
fn: fnSuccess,
scope: this
}
},
webscript: {
name:"slingshot/archive?nodeRef={nodeRef}",
stem: Alfresco.constants.PROXY_URI,
method: Alfresco.util.Ajax.GET,
params: {
nodeRef: record.nodeRef
}
},
config: {
}
});
}
});
})();
ThanksNancy