From 02823770f6c65d3d3cfb1df0d6397f7f893bd098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Mon, 10 Mar 2014 11:50:35 +0100 Subject: [PATCH] Feature #2746: Fix template creation response message --- src/sunstone/public/js/plugins/oneflow-templates.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/js/plugins/oneflow-templates.js b/src/sunstone/public/js/plugins/oneflow-templates.js index 7c82632dba..876c0e58fc 100644 --- a/src/sunstone/public/js/plugins/oneflow-templates.js +++ b/src/sunstone/public/js/plugins/oneflow-templates.js @@ -308,13 +308,13 @@ var service_template_actions = { "ServiceTemplate.create" : { type: "create", call: ServiceTemplate.create, - callback: function(req, res){ + callback: function(request, response) { //empty creation dialog roles after successful creation var dialog = $create_service_template_dialog; $('table#current_roles tbody', dialog).empty(); $('select[name="parents"]', dialog).empty(); - addServiceTemplateElement(req, res); - notifyCustom(tr("Service Template created"), " ID: " + req.DOCUMENT.ID, false); + addServiceTemplateElement(request, response); + notifyCustom(tr("Service Template created"), " ID: " + response.DOCUMENT.ID, false); }, error: onError },