You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2012/10/25 10:17:54 UTC
[14/22] git commit: CS-16573: cloudstack UI - create tag,
delete tag - encode tags[0].key and tags[0].value when passing them
to API call.
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/a5f4a67e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/a5f4a67e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/a5f4a67e
Branch: refs/heads/marvin-parallel
Commit: a5f4a67e2f26e04bce6f8f3db1804a6a7a4c38ac
Parents: c6a4670
Author: Jessica Wang <je...@citrix.com>
Authored: Mon Oct 22 16:37:49 2012 -0700
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Thu Oct 25 13:47:32 2012 +0530
----------------------------------------------------------------------
ui/scripts/sharedFunctions.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a5f4a67e/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
},