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.
This commit is contained in:
Brian Federle 2013-04-23 14:42:16 -07:00
parent 1c482b5c3b
commit a9b903d597
1 changed files with 2 additions and 0 deletions

View File

@ -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;