Skip to content

Commit 8d98cc2

Browse files
author
Jessica Wang
committed
CLOUDSTACK-3789: UI - specify type when making API calls.
1 parent e03f7f4 commit 8d98cc2

6 files changed

Lines changed: 17 additions & 4 deletions

File tree

‎ui/modules/vnmcNetworkProvider/vnmcNetworkProvider.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179

180180
$.ajax({
181181
url: createURL('addCiscoVnmcResource'),
182+
type: "POST",
182183
data: data,
183184
success: function (json) {
184185
var item = json.addCiscoVnmcResource.CiscoVnmcResource;

‎ui/scripts/accounts.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@
12801280
$.ajax({
12811281
url: createURL('updateUser'),
12821282
data: data,
1283-
async: true,
1283+
type: "POST",
12841284
success: function(json) {
12851285
args.response.success({
12861286
data: json.updateuserresponse.user

‎ui/scripts/globalSettings.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
$.ajax({
317317
url: createURL("ldapConfig" + array.join("")),
318318
dataType: "json",
319-
async: true,
319+
type: "POST",
320320
success: function(json) {
321321
var items = json.ldapconfigresponse.ldapconfig;
322322
args.response.success({

‎ui/scripts/network.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,6 +4088,7 @@
40884088
account: args.context.ipAddresses[0].account
40894089
}),
40904090
dataType: 'json',
4091+
type: "POST",
40914092
success: function(data) {
40924093
args.response.success({
40934094
_custom: {

‎ui/scripts/system.js‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6061,6 +6061,7 @@
60616061
$.ajax({
60626062
url: createURL('addVmwareDc'),
60636063
data: data,
6064+
type: "POST",
60646065
success: function(json) {
60656066
//var item = json.addvmwaredcresponse.vmwaredc;
60666067
args.response.success();
@@ -11199,7 +11200,7 @@
1119911200
$.ajax({
1120011201
url: createURL("addCluster" + array1.join("")),
1120111202
dataType: "json",
11202-
async: true,
11203+
type: "POST",
1120311204
success: function(json) {
1120411205
var item = json.addclusterresponse.cluster[0];
1120511206
clusterId = json.addclusterresponse.cluster[0].id;
@@ -14197,6 +14198,7 @@
1419714198
$.ajax({
1419814199
url: createURL('addUcsManager'),
1419914200
data: data,
14201+
type: "POST",
1420014202
success: function(json) { //e.g. json == { "addUcsManagerResponse" : { "ucsmanager" : {"id":"11","name":"ucsmanager","url":"10.223.184.2","zoneid":"2"} } }
1420114203
var item = json.addUcsManagerResponse.ucsmanager;
1420214204
args.response.success({
@@ -15478,6 +15480,7 @@
1547815480
username: args.data.username,
1547915481
password: args.data.password
1548015482
},
15483+
type: "POST",
1548115484
success: function(json) {
1548215485
var jid = json.addexternaldhcpresponse.jobid;
1548315486
args.response.success({
@@ -15513,6 +15516,7 @@
1551315516
username: args.data.username,
1551415517
password: args.data.password
1551515518
},
15519+
type: "POST",
1551615520
success: function(json) {
1551715521
var jid = json.addexternaldhcpresponse.jobid;
1551815522
args.response.success({
@@ -15560,6 +15564,7 @@
1556015564
password: args.data.password,
1556115565
tftpdir: args.data.tftpdir
1556215566
},
15567+
type: "POST",
1556315568
success: function(json) {
1556415569
var jid = json.addexternalpxeresponse.jobid;
1556515570
args.response.success({
@@ -15596,6 +15601,7 @@
1559615601
password: args.data.password,
1559715602
tftpdir: args.data.tftpdir
1559815603
},
15604+
type: "POST",
1559915605
success: function(json) {
1560015606
var jid = json.addexternalpxeresponse.jobid;
1560115607
args.response.success({
@@ -15704,6 +15710,7 @@
1570415710
$.ajax({
1570515711
url: createURL(apiCmd + array1.join("")),
1570615712
dataType: "json",
15713+
type: "POST",
1570715714
success: function(json) {
1570815715
var jid = json[apiCmdRes].jobid;
1570915716
args.response.success({
@@ -15849,6 +15856,7 @@
1584915856
$.ajax({
1585015857
url: createURL(apiCmd + array1.join("")),
1585115858
dataType: "json",
15859+
type: "POST",
1585215860
success: function(json) {
1585315861
var jid = json[apiCmdRes].jobid;
1585415862
args.response.success({
@@ -15881,6 +15889,7 @@
1588115889
$.ajax({
1588215890
url: createURL(apiCmd + array1.join("")),
1588315891
dataType: "json",
15892+
type: "POST",
1588415893
success: function(json) {
1588515894
var jid = json[apiCmdRes].jobid;
1588615895
args.response.success({

‎ui/scripts/zoneWizard.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3271,6 +3271,7 @@
32713271

32723272
$.ajax({
32733273
url: createURL("addNetscalerLoadBalancer" + array1.join("")),
3274+
type: "POST",
32743275
dataType: "json",
32753276
success: function(json) {
32763277
var addNetscalerLoadBalancerIntervalID = setInterval(function() {
@@ -3808,6 +3809,7 @@
38083809
$.ajax({
38093810
url: createURL('addVmwareDc'),
38103811
data: vmwareData,
3812+
type: "POST",
38113813
success: function(json) {
38123814
var item = json.addvmwaredcresponse.vmwaredc;
38133815
if (item.id != null) {
@@ -3846,7 +3848,7 @@
38463848
$.ajax({
38473849
url: createURL("addCluster" + array1.join("")),
38483850
dataType: "json",
3849-
async: true,
3851+
type: "POST",
38503852
success: function(json) {
38513853
stepFns.addHost({
38523854
data: $.extend(args.data, {

0 commit comments

Comments
 (0)