You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2012/10/24 23:51:59 UTC

git commit: CS-16573: cloudstack UI - create tag, delete tag - encode tags[0].key and tags[0].value when passing them to API call.

Updated Branches:
  refs/heads/master 9372171af -> 1c5434808


CS-16573: cloudstack UI - create tag, delete tag - encode tags[0].key and tags[0].value when passing them to API call.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/1c543480
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/1c543480
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/1c543480

Branch: refs/heads/master
Commit: 1c5434808143514a65a9f08211ebb86bdbff6474
Parents: 9372171
Author: Jessica Wang <je...@citrix.com>
Authored: Mon Oct 22 16:37:49 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Wed Oct 24 14:51:38 2012 -0700

----------------------------------------------------------------------
 ui/scripts/sharedFunctions.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1c543480/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index b2dd0ef..73e16a0 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -694,10 +694,10 @@ cloudStack.api = {
           var resourceId = args.context[contextId][0].id;
 
           $.ajax({
-            url: createURL(
-              'createTags&tags[0].key=' + data.key + '&tags[0].value=' + data.value
-            ),
+            url: createURL('createTags'),
             data: {
+						  'tags[0].key': data.key,
+							'tags[0].value': data.value,						
               resourceIds: resourceId,
               resourceType: resourceType
             },
@@ -718,10 +718,10 @@ cloudStack.api = {
           var resourceId = args.context[contextId][0].id;
 
           $.ajax({
-            url: createURL(
-              'deleteTags&tags[0].key=' + data.key + '&tags[0].value=' + data.value
-            ),
+            url: createURL('deleteTags'),
             data: {
+						  'tags[0].key': data.key,
+							'tags[0].value': data.value,						
               resourceIds: resourceId,
               resourceType: resourceType
             },