bug 10360: cloudStack UI - Router page - listServiceOfferings API has changed to take in new parameter "systemvmtype". Here is related UI change.

This commit is contained in:
Jessica Wang 2011-06-21 14:25:38 -07:00
parent d89cfe26b0
commit f8abe298d4

View File

@ -312,7 +312,7 @@ function doChangeSystemServiceOffering($actionLink, $detailsTab, $midmenuItem1)
}
$.ajax({
data: createURL("command=listServiceOfferings&issystem=true"),
data: createURL("command=listServiceOfferings&issystem=true&systemvmtype=domainrouter"),
dataType: "json",
async: false,
success: function(json) {
@ -321,10 +321,10 @@ function doChangeSystemServiceOffering($actionLink, $detailsTab, $midmenuItem1)
if (offerings != null && offerings.length > 0) {
for (var i = 0; i < offerings.length; i++) {
if(offerings[i].id != jsonObj.serviceofferingid) {
//if(offerings[i].id != jsonObj.serviceofferingid) {
var option = $("<option value='" + offerings[i].id + "'>" + fromdb(offerings[i].name) + "</option>").data("name", fromdb(offerings[i].name));
offeringSelect.append(option);
}
//}
}
}
}