:
diff --git a/ui/scripts/cloud.core.router.js b/ui/scripts/cloud.core.router.js
index 94ab5de1431..c02f25b3d3b 100644
--- a/ui/scripts/cloud.core.router.js
+++ b/ui/scripts/cloud.core.router.js
@@ -75,7 +75,8 @@ function routerGetSearchParams() {
}
function afterLoadRouterJSP() {
-
+ // dialogs
+ initDialog("dialog_change_system_service_offering", 600);
}
function routerToMidmenu(jsonObj, $midmenuItem1) {
@@ -176,7 +177,8 @@ function routerJsonToDetailsTab() {
$thisTab.find("#publicip").text(fromdb(jsonObj.publicip));
$thisTab.find("#privateip").text(fromdb(jsonObj.linklocalip));
$thisTab.find("#guestipaddress").text(fromdb(jsonObj.guestipaddress));
- $thisTab.find("#hostname").text(fromdb(jsonObj.hostname));
+ $thisTab.find("#hostname").text(fromdb(jsonObj.hostname));
+ $thisTab.find("#serviceOfferingName").text(fromdb(jsonObj.serviceofferingname));
$thisTab.find("#networkdomain").text(fromdb(jsonObj.networkdomain));
$thisTab.find("#domain").text(fromdb(jsonObj.domain));
$thisTab.find("#account").text(fromdb(jsonObj.account));
@@ -224,7 +226,8 @@ function routerClearDetailsTab() {
$thisTab.find("#publicip").text("");
$thisTab.find("#privateip").text("");
$thisTab.find("#guestipaddress").text("");
- $thisTab.find("#hostname").text("");
+ $thisTab.find("#hostname").text("");
+ $thisTab.find("#serviceOfferingName").text("");
$thisTab.find("#networkdomain").text("");
$thisTab.find("#domain").text("");
$thisTab.find("#account").text("");
@@ -309,7 +312,7 @@ function doChangeSystemServiceOffering($actionLink, $detailsTab, $midmenuItem1)
}
$.ajax({
- data: createURL("command=listServiceOfferings&VirtualMachineId="+id),
+ data: createURL("command=listServiceOfferings&issystem=true"),
dataType: "json",
async: false,
success: function(json) {