cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [08/30] git commit: updated refs/heads/ui-vpc-redesign to 9ac67b8
Date Mon, 13 May 2013 18:13:13 GMT
Add pod action: Add custom 'appendData' to action

For use with plugin API, if 'appendData' is passed in args, always
append this data to the end of the API call. Used when plugin adds new
attributes that need to be passed via the API.


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

Branch: refs/heads/ui-vpc-redesign
Commit: a9b903d597614adcb8d2c783d718e23f9011767f
Parents: 1c482b5
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Apr 23 14:42:16 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Apr 23 14:42:16 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a9b903d5/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index f888169..95690a9 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -7634,6 +7634,7 @@
 
               action: function(args) {
                 var array1 = [];
+                var appendData = args.data.append ? args.data.append : {};
                 
                 array1.push("&zoneId=" + args.data.zoneid);
                 array1.push("&name=" + todb(args.data.podname));
@@ -7647,6 +7648,7 @@
 
                 $.ajax({
                   url: createURL("createPod" + array1.join("")),
+                  data: appendData,
                   dataType: "json",
                   success: function(json) {
                     var item = json.createpodresponse.pod;


Mime
View raw message