mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4142: UI > VPC > tier > detailView > edit action > network offering dropdown > get current network offering from listNetworks API response instead of listNetworkOfferings API response.
This commit is contained in:
parent
aebcec256e
commit
bea095fa47
|
|
@ -3463,20 +3463,13 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: createURL("listNetworkOfferings&id=" + args.context.networks[0].networkofferingid), //include currently selected network offeirng to dropdown
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering;
|
||||
$(networkOfferingObjs).each(function() {
|
||||
items.push({
|
||||
id: this.id,
|
||||
description: this.displaytext
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
//include currently selected network offeirng to dropdown
|
||||
items.push({
|
||||
id: args.context.networks[0].networkofferingid,
|
||||
description: args.context.networks[0].networkofferingdisplaytext
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue