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-cisco-asa1000v-support Commit: a9b903d597614adcb8d2c783d718e23f9011767f Parents: 1c482b5 Author: Brian Federle <[email protected]> Authored: Tue Apr 23 14:42:16 2013 -0700 Committer: Brian Federle <[email protected]> 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;
