Skip to content

Commit a9b903d

Browse files
committed
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.
1 parent 1c482b5 commit a9b903d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7634,6 +7634,7 @@
76347634

76357635
action: function(args) {
76367636
var array1 = [];
7637+
var appendData = args.data.append ? args.data.append : {};
76377638

76387639
array1.push("&zoneId=" + args.data.zoneid);
76397640
array1.push("&name=" + todb(args.data.podname));
@@ -7647,6 +7648,7 @@
76477648

76487649
$.ajax({
76497650
url: createURL("createPod" + array1.join("")),
7651+
data: appendData,
76507652
dataType: "json",
76517653
success: function(json) {
76527654
var item = json.createpodresponse.pod;

0 commit comments

Comments
 (0)