From a9b903d597614adcb8d2c783d718e23f9011767f Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Tue, 23 Apr 2013 14:42:16 -0700 Subject: [PATCH] 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. --- ui/scripts/system.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index f8881698de0..95690a9b7c7 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;