Hi,
i have written below code in one js file .. to add custom functionality o n my action:
onActionCreatePackage: function dlA__createPackage(record)
{
if (!this.modules.createPackage)
{
this.modules.createPackage = new Alfresco.module.DoclibCreatePackage(this.id + "-createPackage");
}
var zIndex = 0;
if (this.fullscreen !== undefined && ( this.fullscreen.isWindowOnly || Dom.hasClass(this.id, 'alf-fullscreen')))
{
zIndex = 1000;
}
var parentElement = undefined;
if (Dom.hasClass(this.id, 'alf-true-fullscreen'))
{
parentElement = Dom.get(this.id);
}
this.modules.createPackage.setOptions(
{
siteId: this.options.siteId,
containerId: this.options.containerId,
path: this.currentPath,
files: record,
rootNode: this.options.repositoryBrowsing ? this.modules.createPackage.options.rootNode : this.options.rootNode,
repositoryRoot: this.options.repositoryRoot,
parentId: this.getParentNodeRef(record),
zIndex: zIndex,
parentElement : parentElement ? parentElement : undefined,
currNodeRef: record.nodeRef
}).showDialog()//.showDialog(); //setOptions(
}
But how can i access this currNodeRef in my .get.js file.
Thank you!!