From 29c8402abfcfe8416189a9c3533af8cfea80b94d Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Mon, 22 Aug 2011 13:40:04 +0000 Subject: [PATCH] Improvements to service for ALF-9710 - to allow highlighting of the newly created node content in the doclib. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29951 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../slingshot/documentlibrary/node-templates.post.json.ftl | 7 +++++-- .../slingshot/documentlibrary/node-templates.post.json.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.ftl b/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.ftl index e37684e04d..9590ea9b85 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.ftl @@ -1,3 +1,6 @@ +<#escape x as jsonUtils.encodeJSONString(x)> { - "success": true -} \ No newline at end of file + "success": true, + "name": "${name}" +} + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.js b/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.js index e61e92634c..6ab3c553cb 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.js +++ b/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node-templates.post.json.js @@ -25,7 +25,7 @@ function main() { status.setCode(status.STATUS_NOT_FOUND, "Source or destination node is missing for copy operation."); } - sourceNode.copy(parentNode); + model.name = sourceNode.copy(parentNode).name; } main(); \ No newline at end of file