From d8acd3d80a50237611ca24eda1e1f07322b15722 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 3 May 2006 21:34:42 +0000 Subject: [PATCH] . Rhino JavaScript integration checkpoint: - Added APIs to allow updating and addition of node properties - Added APIs for content manipulation - Added APIs to allow creation of files and folders git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/web/bean/actions/BaseActionWizard.java | 5 ++++- source/web/jsp/actions/script.jsp | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java b/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java index cca1ed275f..c0fb06d3c6 100644 --- a/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java +++ b/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java @@ -827,7 +827,9 @@ public abstract class BaseActionWizard extends BaseWizardBean } /** - * Build the param map for the current Action instance + * Build the param map for the current Action instance. + *

+ * Based on the params set by the UI, build the params needed to create the action. * * @return param map */ @@ -1063,6 +1065,7 @@ public abstract class BaseActionWizard extends BaseWizardBean String id = (String)this.currentActionProperties.get(PROP_SCRIPT); NodeRef scriptRef = new NodeRef(Repository.getStoreRef(), id); actionParams.put(ScriptActionExecutor.PARAM_SCRIPTREF, scriptRef); + actionParams.put(ScriptActionExecutor.PARAM_SPACEREF, this.navigator.getCurrentNode().getNodeRef()); } return actionParams; diff --git a/source/web/jsp/actions/script.jsp b/source/web/jsp/actions/script.jsp index 1ec2183223..ac55d4a043 100644 --- a/source/web/jsp/actions/script.jsp +++ b/source/web/jsp/actions/script.jsp @@ -103,8 +103,8 @@ - : - + : + <%-- Scripts drop-down selector --%>