CLOUDSTACK-3789: UI - specify type when making API calls.

This commit is contained in:
Jessica Wang 2013-07-24 11:50:35 -07:00
parent e03f7f4db3
commit 8d98cc2b12
6 changed files with 17 additions and 4 deletions

View File

@ -179,6 +179,7 @@
$.ajax({
url: createURL('addCiscoVnmcResource'),
type: "POST",
data: data,
success: function (json) {
var item = json.addCiscoVnmcResource.CiscoVnmcResource;

View File

@ -1280,7 +1280,7 @@
$.ajax({
url: createURL('updateUser'),
data: data,
async: true,
type: "POST",
success: function(json) {
args.response.success({
data: json.updateuserresponse.user

View File

@ -316,7 +316,7 @@
$.ajax({
url: createURL("ldapConfig" + array.join("")),
dataType: "json",
async: true,
type: "POST",
success: function(json) {
var items = json.ldapconfigresponse.ldapconfig;
args.response.success({

View File

@ -4088,6 +4088,7 @@
account: args.context.ipAddresses[0].account
}),
dataType: 'json',
type: "POST",
success: function(data) {
args.response.success({
_custom: {

View File

@ -6061,6 +6061,7 @@
$.ajax({
url: createURL('addVmwareDc'),
data: data,
type: "POST",
success: function(json) {
//var item = json.addvmwaredcresponse.vmwaredc;
args.response.success();
@ -11199,7 +11200,7 @@
$.ajax({
url: createURL("addCluster" + array1.join("")),
dataType: "json",
async: true,
type: "POST",
success: function(json) {
var item = json.addclusterresponse.cluster[0];
clusterId = json.addclusterresponse.cluster[0].id;
@ -14197,6 +14198,7 @@
$.ajax({
url: createURL('addUcsManager'),
data: data,
type: "POST",
success: function(json) { //e.g. json == { "addUcsManagerResponse" : { "ucsmanager" : {"id":"11","name":"ucsmanager","url":"10.223.184.2","zoneid":"2"} } }
var item = json.addUcsManagerResponse.ucsmanager;
args.response.success({
@ -15478,6 +15480,7 @@
username: args.data.username,
password: args.data.password
},
type: "POST",
success: function(json) {
var jid = json.addexternaldhcpresponse.jobid;
args.response.success({
@ -15513,6 +15516,7 @@
username: args.data.username,
password: args.data.password
},
type: "POST",
success: function(json) {
var jid = json.addexternaldhcpresponse.jobid;
args.response.success({
@ -15560,6 +15564,7 @@
password: args.data.password,
tftpdir: args.data.tftpdir
},
type: "POST",
success: function(json) {
var jid = json.addexternalpxeresponse.jobid;
args.response.success({
@ -15596,6 +15601,7 @@
password: args.data.password,
tftpdir: args.data.tftpdir
},
type: "POST",
success: function(json) {
var jid = json.addexternalpxeresponse.jobid;
args.response.success({
@ -15704,6 +15710,7 @@
$.ajax({
url: createURL(apiCmd + array1.join("")),
dataType: "json",
type: "POST",
success: function(json) {
var jid = json[apiCmdRes].jobid;
args.response.success({
@ -15849,6 +15856,7 @@
$.ajax({
url: createURL(apiCmd + array1.join("")),
dataType: "json",
type: "POST",
success: function(json) {
var jid = json[apiCmdRes].jobid;
args.response.success({
@ -15881,6 +15889,7 @@
$.ajax({
url: createURL(apiCmd + array1.join("")),
dataType: "json",
type: "POST",
success: function(json) {
var jid = json[apiCmdRes].jobid;
args.response.success({

View File

@ -3271,6 +3271,7 @@
$.ajax({
url: createURL("addNetscalerLoadBalancer" + array1.join("")),
type: "POST",
dataType: "json",
success: function(json) {
var addNetscalerLoadBalancerIntervalID = setInterval(function() {
@ -3808,6 +3809,7 @@
$.ajax({
url: createURL('addVmwareDc'),
data: vmwareData,
type: "POST",
success: function(json) {
var item = json.addvmwaredcresponse.vmwaredc;
if (item.id != null) {
@ -3846,7 +3848,7 @@
$.ajax({
url: createURL("addCluster" + array1.join("")),
dataType: "json",
async: true,
type: "POST",
success: function(json) {
stepFns.addHost({
data: $.extend(args.data, {